provide extended constructor for schema

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1751 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-05-21 07:34:36 +00:00
parent 1f545ece68
commit e821d791b5
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,3 @@
"""
$Id$
"""

View file

@ -30,4 +30,11 @@ from cybertools.composer.base import Template
class Schema(Template):
pass
def __init__(self, *fields):
super(Schema, self).__init__()
for f in fields:
self.components.append(f)
@property
def fields(self):
return self.components