insert the driver attribute to the real manager, not the wrapper
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 28 Nov 2011 09:08:05 +0000 (10:08 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 28 Nov 2011 09:08:05 +0000 (10:08 +0100)
sfa/generic/__init__.py

index 0f9043b..363f3dd 100644 (file)
@@ -46,7 +46,7 @@ class Generic:
     # see pl.py for an example
     # some descendant of SfaApi
     def api_class (self) : pass
-    # in practical terms these are modules for now
+    # the python classes to use to build up the context
     def registry_class (self) : pass
     def slicemgr_class (self) : pass
     def aggregate_class (self) : pass
@@ -64,9 +64,10 @@ class Generic:
         driver = self.make_driver (api.config, api.interface)
         ### arrange stuff together
         # add a manager wrapper
-        manager = ManagerWrapper(manager,api.interface)
-        api.manager=manager
+        manager_wrap = ManagerWrapper(manager,api.interface)
+        api.manager=manager_wrap
         # insert driver in manager
+        logger.info("Setting manager.driver, manager=%s"%manager)
         manager.driver=driver
         # add it in api as well for convenience
         api.driver=driver