Commit e718f379 authored by Sebastien Robin's avatar Sebastien Robin

there was zero division error when the field_id was 'listbox'

after my last commit. Provide a solution to fix it

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30585 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f90df1ae
......@@ -759,8 +759,13 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
def getProxyableFieldList(self, field, form_field_list=None):
""""""
def extract_keyword(name):
return [i for i in name.split('_') if not i in \
keyword_list = [i for i in name.split('_') if not i in \
('my', 'default', 'listbox')]
if len(keyword_list) == 0:
# This means that the name is one of the exception keywords,
# so we have to keep it
keyword_list = [name]
return keyword_list
def check_keyword_list(name, keyword_list):
count = 0
......
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