[Erp5-report] r27258 - /erp5/trunk/products/ERP5Form/Form.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 29 16:59:44 CEST 2009
Author: nicolas
Date: Fri May 29 16:59:42 2009
New Revision: 27258
URL: http://svn.erp5.org?rev=27258&view=rev
Log:
Add new property on Forms to choose button title displayed
Modified:
erp5/trunk/products/ERP5Form/Form.py
Modified: erp5/trunk/products/ERP5Form/Form.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/Form.py?rev=27258&r1=27257&r2=27258&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/Form.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/Form.py [utf8] Fri May 29 16:59:42 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
@@ -452,6 +453,10 @@
title='Form update action',
required=0,
default="")
+ update_action_title = fields.StringField('update_action_title',
+ title="Update Action Title",
+ required=0,
+ default="")
method = fields.ListField('method',
title='Form method',
items=[('POST', 'POST'),
@@ -485,8 +490,8 @@
title='Setters for these properties should be'
'<br /> called by edit() in the defined order')
- form.add_fields([title, description, row_length, name, pt, action, update_action, method,
- enctype, encoding, stored_encoding, unicode_mode, edit_order])
+ form.add_fields([title, description, row_length, name, pt, action, update_action, update_action_title,
+ method, enctype, encoding, stored_encoding, unicode_mode, edit_order])
return form
class ERP5Form(ZMIForm, ZopePageTemplate):
@@ -529,6 +534,7 @@
# Default Attributes
pt = 'form_view'
update_action = ''
+ update_action_title = ''
edit_order = []
# Special Settings
More information about the Erp5-report
mailing list