[Erp5-report] r8257 - /erp5/trunk/products/ERP5Form/FormulatorPatch.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 30 15:53:31 CEST 2006
Author: vincent
Date: Fri Jun 30 15:53:30 2006
New Revision: 8257
URL: http://svn.erp5.org?rev=8257&view=rev
Log:
Remove useless code introduced in my last commit.
Modified:
erp5/trunk/products/ERP5Form/FormulatorPatch.py
Modified: erp5/trunk/products/ERP5Form/FormulatorPatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/FormulatorPatch.py?rev=8257&r1=8256&r2=8257&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/FormulatorPatch.py (original)
+++ erp5/trunk/products/ERP5Form/FormulatorPatch.py Fri Jun 30 15:53:30 2006
@@ -244,10 +244,7 @@
def BooleanValidator_validate(self, field, key, REQUEST):
result = REQUEST.get(key, REQUEST.get('default_%s' % (key, )))
if result is None:
- if field.get_value('required'):
- raise Exception, 'Required field %s has not been transmitted. Check that all required fields are in visible groups.' % (repr(field.id), )
- else:
- raise KeyError, 'Field %s is not present in request object.' % (repr(field.id), )
+ raise KeyError, 'Field %s is not present in request object.' % (repr(field.id), )
if (not not result)==True:
return 1
else:
@@ -282,15 +279,6 @@
return "".join(rendered)
CheckBoxWidget.render = CheckBoxWidget_render
-
-if 'required' not in CheckBoxWidget.property_names:
- CheckBoxWidget.property_names = CheckBoxWidget.property_names + ['required']
- CheckBoxWidget.required = fields.CheckBoxField('required',
- title='Required',
- description=(
- "Enforces the need for the field to be rendered."),
- default=0)
-
# Patch the render_view of a TextAreaWidget so that
# it is rendered as a nice box, it is using the tag
More information about the Erp5-report
mailing list