diff --git a/composer/schema/factory.py b/composer/schema/factory.py index 8f04f06..3de488a 100644 --- a/composer/schema/factory.py +++ b/composer/schema/factory.py @@ -77,9 +77,12 @@ class SchemaFactory(object): fieldMapping = self.fieldMapping fields = [] omit = kw.pop('omit', []) + include = kw.pop('include', []) for fname in schema.getFieldNamesInOrder(interface): if fname in omit: continue + if include and fname not in include: + continue field = interface[fname] info = fieldMapping.get(field.__class__) f = createField(field, info) diff --git a/composer/schema/grid/grid_macros.pt b/composer/schema/grid/grid_macros.pt index 26031cb..903be12 100755 --- a/composer/schema/grid/grid_macros.pt +++ b/composer/schema/grid/grid_macros.pt @@ -39,30 +39,56 @@ - + tal:define="fieldInstance python: field.getFieldInstance(item.instance); + columns fieldInstance/columnTypes; + rows data/?name"> +
+ - + + + + name string:$name.$cname:records;" /> - - - -
Column Title
-
-

+ + + + + + + + + + + + +
+ +