Commit 8368950b authored by Sebastien Robin's avatar Sebastien Robin

added update action in settings


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@616 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2e0b609
...@@ -232,6 +232,10 @@ def create_settings_form(): ...@@ -232,6 +232,10 @@ def create_settings_form():
title='Form action', title='Form action',
required=0, required=0,
default="") default="")
update_action = fields.StringField('update_action',
title='Form update action',
required=0,
default="")
method = fields.ListField('method', method = fields.ListField('method',
title='Form method', title='Form method',
items=[('POST', 'POST'), items=[('POST', 'POST'),
...@@ -264,7 +268,7 @@ def create_settings_form(): ...@@ -264,7 +268,7 @@ def create_settings_form():
default=0, default=0,
required=1) required=1)
form.add_fields([title, row_length, name, pt, action, method, form.add_fields([title, row_length, name, pt, action, update_action, method,
enctype, encoding, stored_encoding, unicode_mode]) enctype, encoding, stored_encoding, unicode_mode])
return form return form
...@@ -288,6 +292,7 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -288,6 +292,7 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
# Default Attributes # Default Attributes
pt = 'form_view' pt = 'form_view'
update_action = ''
# Special Settings # Special Settings
settings_form = create_settings_form() settings_form = create_settings_form()
......
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