From: Thierry Parmentelat Date: Fri, 15 Nov 2013 14:13:10 +0000 (+0100) Subject: this should end the move to api-related dbsession for the iotlab driver X-Git-Tag: sfa-3.1-1~28 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4e2ec73ee3208dedc36a6954d99f2c2ab3f6baf3;p=sfa.git this should end the move to api-related dbsession for the iotlab driver --- diff --git a/sfa/iotlab/iotlabdriver.py b/sfa/iotlab/iotlabdriver.py index ec902937..55764317 100644 --- a/sfa/iotlab/iotlabdriver.py +++ b/sfa/iotlab/iotlabdriver.py @@ -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): """