コード例 #1
0
ファイル: errors.py プロジェクト: thefunny42/Zeam-Form
 def __repr__(self):
     if interfaces.IError.providedBy(self):
         return "<%s for %r>" % (self.__class__.__name__, self.identifier)
     return Collection.__repr__(self)
コード例 #2
0
ファイル: errors.py プロジェクト: thefunny42/Zeam-Form
 def __init__(self, *components, **options):
     Collection.__init__(self, *components, **options)
     if 'identifier' in options:
         directlyProvides(self, interfaces.IError)