Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
3a08c758
Commit
3a08c758
authored
Sep 05, 2017
by
Tomáš Peterka
Committed by
Tomáš Peterka
Sep 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5] Form/FormBox - call a method when you get it
Fixes broken test on master /reviewed-on
nexedi/erp5!374
parent
9d71c913
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5Form/FormBox.py
product/ERP5Form/FormBox.py
+2
-1
No files found.
product/ERP5Form/FormBox.py
View file @
3a08c758
...
@@ -141,7 +141,8 @@ class FormBoxEditor:
...
@@ -141,7 +141,8 @@ class FormBoxEditor:
def
edit
(
self
,
context
):
def
edit
(
self
,
context
):
if
self
.
context_method_id
:
if
self
.
context_method_id
:
context
=
getattr
(
context
,
self
.
context_method_id
)
context
=
getattr
(
context
,
self
.
context_method_id
)()
context
.
edit
(
**
self
.
attr_dict
)
context
.
edit
(
**
self
.
attr_dict
)
for
encapsulated_editor
in
self
.
editor_list
:
for
encapsulated_editor
in
self
.
editor_list
:
encapsulated_editor
.
edit
(
context
)
encapsulated_editor
.
edit
(
context
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment