first stab at a design where each incoming API call has its own dbsession
[sfa.git] / sfa / managers / driver.py
index fa25a83..0e8b71d 100644 (file)
@@ -5,9 +5,10 @@
 
 class Driver:
     
-    def __init__ (self, config): 
+    def __init__ (self, api): 
+        self.api = api
         # this is the hrn attached to the running server
-        self.hrn = config.SFA_INTERFACE_HRN
+        self.hrn = api.config.SFA_INTERFACE_HRN
 
     ########################################
     ########## registry oriented