Ejemplo n.º 1
0
 def get_interfaces(self, named=False):
     interfaces = list(provided_by(self.subject))
     if named:
         items = []
         for interface in interfaces:
             items.append((interface.__module__, interface.__name__))
             interfaces = [".".join(item) for item in items]
     return interfaces
Ejemplo n.º 2
0
 def get_interfaces(self, named=False):
     interfaces = list(provided_by(self))
     if named:
         items = []
         for interface in interfaces:
             items.append((interface.__module__, interface.__name__))
             interfaces = [".".join(item) for item in items]
     return interfaces
Ejemplo n.º 3
0
 def __init__(self, node):
     directly_provides(self, *tuple(provided_by(node)))
     self.__dict__['node'] = node
Ejemplo n.º 4
0
 def __init__(self, facade, user):
     directly_provides(self, *tuple(provided_by(facade)))
     self.__dict__['facade'] = facade
     self.__dict__['user'] = user
Ejemplo n.º 5
0
 def __init__(self, node):
     directly_provides(self, *tuple(provided_by(node)))
     self.__dict__['node'] = node
Ejemplo n.º 6
0
 def __init__(self, facade, user):
     directly_provides(self, *tuple(provided_by(facade)))
     self.__dict__['facade'] = facade
     self.__dict__['user'] = user