Commit 68d355fc authored by Jérome Perrin's avatar Jérome Perrin

hal_json_style: pylint py3

parent 0cf49671
...@@ -216,7 +216,7 @@ if dialog_method != update_method and kw.get('deferred_style', 0): ...@@ -216,7 +216,7 @@ if dialog_method != update_method and kw.get('deferred_style', 0):
# At this point the 'dialog_method' should point to a form (if we are in report) # At this point the 'dialog_method' should point to a form (if we are in report)
# if we are not in Deferred mode - then it points to `Base_activateSimpleView` # if we are not in Deferred mode - then it points to `Base_activateSimpleView`
if True: if True: # pylint:disable=using-constant-test
if dialog_method != update_method: if dialog_method != update_method:
# When we are not executing the update action, we have to change the skin # When we are not executing the update action, we have to change the skin
# manually, # manually,
......
...@@ -782,8 +782,9 @@ def renderField(traversed_document, field, form, value=MARKER, meta_type=None, ...@@ -782,8 +782,9 @@ def renderField(traversed_document, field, form, value=MARKER, meta_type=None,
if list_method is not None: if list_method is not None:
selectKwargsForCallable(list_method, list_method_query_dict, REQUEST) selectKwargsForCallable(list_method, list_method_query_dict, REQUEST)
if (True): # editable_column_list (we need that template fields resolution if True: # pylint:disable=using-constant-test
# (issued by existence of `form_relative_url`) always kicks in # editable_column_list (we need that template fields resolution
# (issued by existence of `form_relative_url`) always kicks in
extra_param_dict = { extra_param_dict = {
# in case of a dialog the form_id points to previous form, otherwise current form # in case of a dialog the form_id points to previous form, otherwise current form
"form_id": REQUEST.get('form_id', form.id) "form_id": REQUEST.get('form_id', form.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