[Erp5-report] r27255 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 29 16:37:30 CEST 2009
Author: jerome
Date: Fri May 29 16:37:28 2009
New Revision: 27255
URL: http://svn.erp5.org?rev=27255&view=rev
Log:
use field._validate_helper to use external validators defined on editable
fields
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=27255&r1=27254&r2=27255&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Fri May 29 16:37:28 2009
@@ -2572,7 +2572,7 @@
error_result_key = my_field.id + '_%s' % o.uid
REQUEST.cell = o
try:
- value = my_field.validator.validate(my_field, key, REQUEST) # We need cell
+ value = my_field._validate_helper(key, REQUEST) # We need cell
# Here we set the property
listbox[uid[4:]][sql] = value
except ValidationError, err:
@@ -2614,7 +2614,7 @@
key = 'field_%s_%s' % (my_field.id, o.uid)
error_result_key = '%s_%s' % (my_field.id, o.uid)
try:
- value = my_field.validator.validate(my_field, key, REQUEST) # We need cell
+ value = my_field._validate_helper(key, REQUEST) # We need cell
result[uid[4:]][sql] = value
except ValidationError, err:
#LOG("ListBox ValidationError",0,str(err))
More information about the Erp5-report
mailing list