Commit 799f6ec3 authored by Jérome Perrin's avatar Jérome Perrin

graph_editor: fix pylint messages

parent 0839775b
...@@ -3,7 +3,6 @@ from Products.Formulator.Errors import FormValidationError ...@@ -3,7 +3,6 @@ from Products.Formulator.Errors import FormValidationError
request = container.REQUEST request = container.REQUEST
form = getattr(context, form_id) form = getattr(context, form_id)
edit_order = form.edit_order
try: try:
# Validate # Validate
form.validate_all_to_request(request, key_prefix='my_') form.validate_all_to_request(request, key_prefix='my_')
...@@ -16,7 +15,7 @@ except FormValidationError, validation_errors: ...@@ -16,7 +15,7 @@ except FormValidationError, validation_errors:
result['field_errors'][key] = value.error_text result['field_errors'][key] = value.error_text
return form() return form()
(kw, encapsulated_editor_list), action = context.Base_edit(form_id, silent_mode=1) (kw, encapsulated_editor_list), _ = context.Base_edit(form_id, silent_mode=1)
assert not encapsulated_editor_list assert not encapsulated_editor_list
context.setProperties( context.setProperties(
......
from Products.ERP5Type.Message import translateString
import json import json
portal = context.getPortalObject()
# if a graph has been saved, we use this info for node coordinates. # if a graph has been saved, we use this info for node coordinates.
position_graph = context.getProperty('jsplumb_graph') position_graph = context.getProperty('jsplumb_graph')
......
from Products.ERP5Type.Message import translateString
import json import json
portal = context.getPortalObject()
# if a graph has been saved, we use this info for node coordinates. # if a graph has been saved, we use this info for node coordinates.
position_graph = context.getProperty('jsplumb_graph') position_graph = context.getProperty('jsplumb_graph')
......
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