from sfa.util.faults import SfaNotImplemented, SfaAPIError
from sfa.util.sfalogging import logger
from sfa.util.faults import SfaNotImplemented, SfaAPIError
from sfa.util.sfalogging import logger
- can be used with any python module. The purpose of this class is raise a
- SfaNotImplemented exception if someone attempts to use an attribute
+ can be used with any python module. The purpose of this class is raise a
+ SfaNotImplemented exception if someone attempts to use an attribute
- library using hasattr. This helps to communicate better errors messages
- to the users and developers in the event that a specifiec operation
+ library using hasattr. This helps to communicate better errors messages
+ to the users and developers in the event that a specifiec operation
"""
def __init__(self, manager, interface, config):
if isinstance(manager, ModuleType):
# old-fashioned module implementation
self.manager = manager
"""
def __init__(self, manager, interface, config):
if isinstance(manager, ModuleType):
# old-fashioned module implementation
self.manager = manager
# create an instance; we don't pass the api in argument as it is passed
# to the actual method calls anyway
self.manager = manager(config)
# create an instance; we don't pass the api in argument as it is passed
# to the actual method calls anyway
self.manager = manager(config)