last plc-dependent code moved to PlDriver
[sfa.git] / sfa / managers / managerwrapper.py
index 86907e7..58a0527 100644 (file)
@@ -15,14 +15,14 @@ class ManagerWrapper:
     is not implemented by a libarary and will generally be more helpful than
     the standard AttributeError         
     """
-    def __init__(self, manager, interface):
+    def __init__(self, manager, interface, config):
         if isinstance (manager, ModuleType):
             # old-fashioned module implementation
             self.manager = manager
         elif isinstance (manager, ClassType):
             # create an instance; we don't pass the api in argument as it is passed 
             # to the actual method calls anyway
-            self.manager = manager()
+            self.manager = manager(config)
         else:
             raise SfaAPIError,"Argument to ManagerWrapper must be a module or class"
         self.interface = interface