Пример #1
0
 def __repr__(self):
     if interfaces.IError.providedBy(self):
         return "<%s for %r>" % (self.__class__.__name__, self.identifier)
     return Collection.__repr__(self)
Пример #2
0
 def __init__(self, *components, **options):
     Collection.__init__(self, *components, **options)
     if 'identifier' in options:
         directlyProvides(self, interfaces.IError)