Commit 7ff9e802 authored by Jérome Perrin's avatar Jérome Perrin

hal_json_style: remove useless log in Base_callDialogMethod

for same reason as the xhtml_style version, there is no problem with
having more than one listbox, see d2dedca3 (core: remove useless log
in Base_callDialogMethod, 2020-07-03)
parent 6dad9f33
...@@ -12,7 +12,6 @@ There are runtime values hidden in every dialog form (injected by getHateoas Scr ...@@ -12,7 +12,6 @@ There are runtime values hidden in every dialog form (injected by getHateoas Scr
extra_param_json - JSON serialized extra parameters for the dialog script extra_param_json - JSON serialized extra parameters for the dialog script
""" """
from erp5.component.module.Log import log, WARNING
from Products.Formulator.Errors import FormValidationError from Products.Formulator.Errors import FormValidationError
import json import json
import six import six
...@@ -137,7 +136,7 @@ try: ...@@ -137,7 +136,7 @@ try:
return context.Base_renderForm(dialog_id, return context.Base_renderForm(dialog_id,
message=translate('Only ODT, ODS, Hal and HalRestricted skins are allowed for reports '\ message=translate('Only ODT, ODS, Hal and HalRestricted skins are allowed for reports '\
'in Preferences - User Interface - Report Style'), 'in Preferences - User Interface - Report Style'),
level=WARNING, level='warning',
form_data=form_data) form_data=form_data)
except FormValidationError as validation_errors: except FormValidationError as validation_errors:
...@@ -180,10 +179,6 @@ for field in form.get_fields(): ...@@ -180,10 +179,6 @@ for field in form.get_fields():
if len(listbox_id_list): if len(listbox_id_list):
# Warn if there are more than one listbox in form ...
if len(listbox_id_list) > 1:
log('Base_callDialogMethod', 'There are %s listboxes in form %s.' % (len(listbox_id_list), form.id))
# ... but handle them anyway.
for listbox_id in listbox_id_list: for listbox_id in listbox_id_list:
listbox_line_list = [] listbox_line_list = []
listbox = kw[listbox_id] listbox = kw[listbox_id]
......
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