provide new RecordsField

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3220 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-02-09 16:28:14 +00:00
parent 6d7fe3abfc
commit cb598381a2
2 changed files with 8 additions and 2 deletions

View file

@ -108,16 +108,20 @@ class ObjectForm(NodeView):
def typeInterface(self): def typeInterface(self):
return IType(self.target).typeInterface or ITextDocument return IType(self.target).typeInterface or ITextDocument
@Lazy def getFieldRenderers(self):
def fieldRenderers(self):
renderers = dict(schema_macros.macros) renderers = dict(schema_macros.macros)
# replace HTML edit widget with Dojo Editor # replace HTML edit widget with Dojo Editor
renderers['input_html'] = self.template.macros['input_html'] renderers['input_html'] = self.template.macros['input_html']
renderers['input_grid'] = grid_macros.macros['input_grid'] renderers['input_grid'] = grid_macros.macros['input_grid']
renderers['input_records'] = grid_macros.macros['input_records']
renderers['input_relationset'] = relation_macros.macros['input_relationset'] renderers['input_relationset'] = relation_macros.macros['input_relationset']
renderers['input_relation'] = relation_macros.macros['input_relation'] renderers['input_relation'] = relation_macros.macros['input_relation']
return renderers return renderers
@Lazy
def fieldRenderers(self):
return self.getFieldRenderers()
@Lazy @Lazy
def fieldEditRenderers(self): def fieldEditRenderers(self):
return schema_edit_macros.macros return schema_edit_macros.macros

View file

@ -343,6 +343,8 @@
name="fileupload" /> name="fileupload" />
<adapter factory="cybertools.composer.schema.grid.field.GridFieldInstance" <adapter factory="cybertools.composer.schema.grid.field.GridFieldInstance"
name="grid" /> name="grid" />
<adapter factory="cybertools.composer.schema.grid.field.RecordsFieldInstance"
name="records" />
<adapter factory="loops.schema.field.RelationSetFieldInstance" <adapter factory="loops.schema.field.RelationSetFieldInstance"
name="relationset" /> name="relationset" />
<adapter factory="loops.schema.field.RelationFieldInstance" <adapter factory="loops.schema.field.RelationFieldInstance"