Changing get_user_record into a normal object method.
authorSandrine Avakian <sandrine.avakian@inria.fr>
Fri, 15 Nov 2013 14:01:16 +0000 (15:01 +0100)
committerSandrine Avakian <sandrine.avakian@inria.fr>
Fri, 15 Nov 2013 14:01:16 +0000 (15:01 +0100)
sfa/cortexlab/cortexlabdriver.py
sfa/iotlab/iotlabdriver.py

index 00ad867..5fc2604 100644 (file)
@@ -15,11 +15,12 @@ from sfa.util.xrn import Xrn, hrn_to_urn, get_authority
 from sfa.cortexlab.cortexlabaggregate import CortexlabAggregate, \
             cortexlab_xrn_to_hostname
 
-from sfa.iotlab.iotlabslices import CortexlabSlices
+from sfa.cortexlab.cortexlabslices import CortexlabSlices
 
 from sfa.cortexlab.cortexlabshell import CortexlabShell
 
 
+
 class CortexlabDriver(Driver):
     """ Cortexlab Driver class inherited from Driver generic class.
 
@@ -293,8 +294,8 @@ class CortexlabDriver(Driver):
                          % (resources, res))
             return result
 
-    @staticmethod
-    def get_user_record(hrn):
+
+    def get_user_record(self, hrn):
         """
 
         Returns the user record based on the hrn from the SFA DB .
index a5703d4..6cd292a 100644 (file)
@@ -297,8 +297,7 @@ class IotlabDriver(Driver):
                          % (resources, res))
             return result
 
-    @staticmethod
-    def get_user_record(hrn):
+    def get_user_record(self, hrn):
         """
 
         Returns the user record based on the hrn from the SFA DB .