Commit 2ca07fa5 authored by Fabien Morin's avatar Fabien Morin

remove tales expression on checkboxes because there is no sens to have it

(thanks to thibaut finding this pb)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22832 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb7b357a
...@@ -318,13 +318,14 @@ class ManageModule: ...@@ -318,13 +318,14 @@ class ManageModule:
access_field = getattr(form_view_id_object, field_id) access_field = getattr(form_view_id_object, field_id)
if field_type == 'CheckBoxField': if field_type == 'CheckBoxField':
test_name = field_id[3:] test_name = field_id[3:]
tales = {field_id : {'default' : 'python: here.getProperty('+ test_name + ', None)'}} #tales = {field_id : {'default' : 'python: here.getProperty(' +\
# test_name + ', None)'}}
forms = [object_names['view_id']] forms = [object_names['view_id']]
form = form_view_id_object.restrictedTraverse(forms[0]) form = form_view_id_object.restrictedTraverse(forms[0])
for k, v in tales.items() : #for k, v in tales.items() :
if hasattr(form, k) : # if hasattr(form, k) :
form[k].manage_tales_xmlrpc(v) # form[k].manage_tales_xmlrpc(v)
#if field_type == 'CheckBoxField': #if field_type == 'CheckBoxField':
# print " dir(%s) > %s" % (field_id,dir(access_field)) # print " dir(%s) > %s" % (field_id,dir(access_field))
# print "---manage_tales > %s \n\n" % dir(access_field.manage_tales) # print "---manage_tales > %s \n\n" % dir(access_field.manage_tales)
......
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