From 8368950bb9a7b1fd0f869043425c86744be7f760 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 25 Mar 2004 08:31:00 +0000
Subject: [PATCH] added update action in settings

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@616 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/Form.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Form/Form.py b/product/ERP5Form/Form.py
index fa0b3afa3a..a8fba1987a 100755
--- a/product/ERP5Form/Form.py
+++ b/product/ERP5Form/Form.py
@@ -232,6 +232,10 @@ def create_settings_form():
                                 title='Form action',
                                 required=0,
                                 default="")
+    update_action = fields.StringField('update_action',
+                                title='Form update action',
+                                required=0,
+                                default="")
     method = fields.ListField('method',
                               title='Form method',
                               items=[('POST', 'POST'),
@@ -264,7 +268,7 @@ def create_settings_form():
                                         default=0,
                                         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])
     return form
 
@@ -288,6 +292,7 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
 
     # Default Attributes
     pt = 'form_view'
+    update_action = ''
 
     # Special Settings
     settings_form = create_settings_form()
-- 
2.30.9