Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
769e5eb0
Commit
769e5eb0
authored
Oct 03, 2012
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass movement_list to after-script so that we can work with temp objects
parent
fbe82ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+8
-2
No files found.
product/ERP5/mixin/builder.py
View file @
769e5eb0
...
@@ -690,16 +690,22 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -690,16 +690,22 @@ class BuilderMixin(XMLObject, Amount, Predicate):
# the callable object is a Python Script.
# the callable object is a Python Script.
meta_type
=
getattr
(
script
,
'meta_type'
,
None
)
meta_type
=
getattr
(
script
,
'meta_type'
,
None
)
if
meta_type
==
'Script (Python)'
:
if
meta_type
==
'Script (Python)'
:
# check
if the script accepts related_simulation_movement_path_lis
t
# check
parameters accepted by the scrip
t
for
param
in
script
.
params
().
split
(
','
):
for
param
in
script
.
params
().
split
(
','
):
param
=
param
.
split
(
'='
,
1
)[
0
].
strip
()
param
=
param
.
split
(
'='
,
1
)[
0
].
strip
()
if
param
==
"movement_list"
:
# XXX-Aurel: path does not work with temp objects
script
(
movement_list
=
movement_list
)
break
if
param
==
'related_simulation_movement_path_list'
\
if
param
==
'related_simulation_movement_path_list'
\
or
param
.
startswith
(
'**'
):
or
param
.
startswith
(
'**'
):
script
(
related_simulation_movement_path_list
=
related_simulation_movement_path_list
)
break
break
else
:
else
:
script
()
script
()
continue
continue
script
(
related_simulation_movement_path_list
=
related_simulation_movement_path_list
)
else
:
script
(
related_simulation_movement_path_list
=
related_simulation_movement_path_list
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getMovementGroupList'
)
'getMovementGroupList'
)
...
...
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