Ejemplo n.º 1
0
 def __init__(self, name, groups=None, kinds=None, types=None):
     AExternalSource.__init__(self)
     self.__name   = name
     self.__groups = set()
     self.__kinds  = set()
     self.__types  = set()
     
     if groups is not None:
         self.__groups = set(groups)
     if kinds is not None:
         self.__kinds = set(kinds)
     if types is not None:
         self.__types = set(types)
Ejemplo n.º 2
0
    def __init__(self, proxy):
        AExternalSource.__init__(self)

        self.__proxy    = proxy
        self.__source   = getSource(proxy.source)