def __repr__(self): if interfaces.IError.providedBy(self): return "<%s for %r>" % (self.__class__.__name__, self.identifier) return Collection.__repr__(self)
def __init__(self, *components, **options): Collection.__init__(self, *components, **options) if 'identifier' in options: directlyProvides(self, interfaces.IError)