diff --git a/composer/schema/__init__.py b/composer/schema/__init__.py index 4bc90fb..38314f3 100644 --- a/composer/schema/__init__.py +++ b/composer/schema/__init__.py @@ -1,4 +1,3 @@ """ $Id$ """ - diff --git a/composer/schema/schema.py b/composer/schema/schema.py index 82e70b1..71ec87f 100644 --- a/composer/schema/schema.py +++ b/composer/schema/schema.py @@ -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