this should end the move to api-related dbsession for the iotlab driver
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 15 Nov 2013 14:13:10 +0000 (15:13 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 15 Nov 2013 14:13:10 +0000 (15:13 +0100)
sfa/iotlab/iotlabdriver.py

index ec90293..5576431 100644 (file)
@@ -308,11 +308,7 @@ class IotlabDriver(Driver):
         :rtype: RegUser
 
         """
-        # xxx this method should not be static
-        from sfa.storage.alchemy import global_dbsession
-        return global_dbsession.query(RegRecord).filter_by(hrn=hrn).first()
-        # code should read instead (if this method was not static, that is)
-        #return self.api.dbsession().query(RegRecord).filter_by(hrn=hrn).first()
+        return self.api.dbsession().query(RegRecord).filter_by(hrn=hrn).first()
 
     def testbed_name(self):
         """