Commit 146375c1 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added support for new fields (proxy, form, editor)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5253 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 646aedab
...@@ -40,9 +40,9 @@ document_classes = updateGlobals( this_module, globals(), ...@@ -40,9 +40,9 @@ document_classes = updateGlobals( this_module, globals(),
permissions_module = Permissions) permissions_module = Permissions)
# Define object classes and tools # Define object classes and tools
import Form, FSForm, ListBox, MatrixBox, SelectionTool, ZGDChart, PDFTemplate, Report, PDFForm, ParallelListField import Form, FSForm, ListBox, MatrixBox, SelectionTool
import PlanningBox import ZGDChart, PDFTemplate, Report, PDFForm, ParallelListField
import POSBox import PlanningBox, POSBox, FormBox, EditorField, ProxyField
import RelationField, ImageField, MultiRelationField import RelationField, ImageField, MultiRelationField
import PreferenceTool import PreferenceTool
...@@ -80,6 +80,14 @@ def initialize( context ): ...@@ -80,6 +80,14 @@ def initialize( context ):
content_classes = content_classes) content_classes = content_classes)
# Initialise ERP5Form Formulator # Initialise ERP5Form Formulator
FieldRegistry.registerField(ProxyField.ProxyField,
'www/StringField.gif')
FieldRegistry.registerField(EditorField.EditorField,
'www/TextAreaField.gif')
FieldRegistry.registerField(FormBox.FormBox,
'www/StringField.gif')
FieldRegistry.registerField(POSBox.POSBox,
'www/StringField.gif')
FieldRegistry.registerField(ListBox.ListBox, FieldRegistry.registerField(ListBox.ListBox,
'www/StringField.gif') 'www/StringField.gif')
FieldRegistry.registerField(PlanningBox.PlanningBox, FieldRegistry.registerField(PlanningBox.PlanningBox,
...@@ -132,8 +140,6 @@ def initialize( context ): ...@@ -132,8 +140,6 @@ def initialize( context ):
'www/FileField.gif') 'www/FileField.gif')
FieldRegistry.registerField(StandardFields.LinkField, FieldRegistry.registerField(StandardFields.LinkField,
'www/LinkField.gif') 'www/LinkField.gif')
FieldRegistry.registerField(POSBox.POSBox,
'www/StringField.gif')
# some helper fields # some helper fields
FieldRegistry.registerField(HelperFields.ListTextAreaField) FieldRegistry.registerField(HelperFields.ListTextAreaField)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment