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
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