示例#1
0
 def __init__(self, name='', bases=(), attrs=None,
              __doc__=None, __module__=None):
     if not bases:
         bases = (Interface,)
     PersistentInterfaceClass.__init__(self, name, bases,
                                       attrs, __doc__, __module__)
     self._clear()
示例#2
0
 def __init__(self, name, doc=None):
     self.id = name
     PersistentInterfaceClass.__init__(self, name=name, bases=(ICustomizableMarker,), __doc__=doc)
     ZMIObject.__init__(self)
     self.marked = PersistentList()