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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Noah Brackenbury
erp5
Commits
0e571301
Commit
0e571301
authored
Dec 05, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid commit of persistent mapping when not needed
parent
36ec80da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/Tool/TaskDistributionTool.py
product/ERP5/Tool/TaskDistributionTool.py
+2
-1
No files found.
product/ERP5/Tool/TaskDistributionTool.py
View file @
0e571301
...
@@ -86,7 +86,6 @@ class TaskDistributionTool(BaseTool):
...
@@ -86,7 +86,6 @@ class TaskDistributionTool(BaseTool):
-> (test_result_path, revision) or None if already completed
-> (test_result_path, revision) or None if already completed
"""
"""
LOG
(
'createTestResult'
,
0
,
(
name
,
revision
,
test_title
,
project_title
))
LOG
(
'createTestResult'
,
0
,
(
name
,
revision
,
test_title
,
project_title
))
self
.
_p_changed
=
1
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
if
test_title
is
None
:
if
test_title
is
None
:
test_title
=
name
test_title
=
name
...
@@ -143,6 +142,7 @@ class TaskDistributionTool(BaseTool):
...
@@ -143,6 +142,7 @@ class TaskDistributionTool(BaseTool):
elif
reference
:
elif
reference
:
last_revision
=
last_revision
,
reference
last_revision
=
last_revision
,
reference
if
len
(
line_dict
)
==
0
and
len
(
test_name_list
):
if
len
(
line_dict
)
==
0
and
len
(
test_name_list
):
self
.
_p_changed
=
1
createTestResultLineList
(
test_result
,
test_name_list
,
line_dict
)
createTestResultLineList
(
test_result
,
test_name_list
,
line_dict
)
return
test_result_path
,
last_revision
return
test_result_path
,
last_revision
if
last_state
==
'stopped'
:
if
last_state
==
'stopped'
:
...
@@ -169,6 +169,7 @@ class TaskDistributionTool(BaseTool):
...
@@ -169,6 +169,7 @@ class TaskDistributionTool(BaseTool):
test_result
.
updateLocalRolesOnSecurityGroups
()
# XXX
test_result
.
updateLocalRolesOnSecurityGroups
()
# XXX
test_result_path
=
test_result
.
getRelativeUrl
()
test_result_path
=
test_result
.
getRelativeUrl
()
self
.
test_result_dict
[
test_title
]
=
test_result_path
,
line_dict
self
.
test_result_dict
[
test_title
]
=
test_result_path
,
line_dict
self
.
_p_changed
=
1
test_result
.
start
()
test_result
.
start
()
createTestResultLineList
(
test_result
,
test_name_list
,
line_dict
)
createTestResultLineList
(
test_result
,
test_name_list
,
line_dict
)
createNode
(
test_result
,
node_title
)
createNode
(
test_result
,
node_title
)
...
...
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