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:
parent
1f545ece68
commit
e821d791b5
2 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
"""
|
||||
$Id$
|
||||
"""
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue