Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
nexedi
dream
Commits
97d7ec60
Commit
97d7ec60
authored
Mar 19, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JSComponentGantt: add order in the hierarchy
parent
8f180faa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
dream/plugins/JSComponentGantt.py
dream/plugins/JSComponentGantt.py
+17
-2
No files found.
dream/plugins/JSComponentGantt.py
View file @
97d7ec60
...
@@ -37,12 +37,27 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
...
@@ -37,12 +37,27 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
for
element
in
resultElements
:
for
element
in
resultElements
:
if
element
[
'_class'
]
in
self
.
COMPONENT_CLASS_SET
:
if
element
[
'_class'
]
in
self
.
COMPONENT_CLASS_SET
:
componentId
=
element
[
'id'
]
componentId
=
element
[
'id'
]
order_id
=
"bug_order_not_found"
# add the order
for
order
in
data
[
'input'
][
'BOM'
][
'productionOrders'
]:
for
component
in
order
.
get
(
'componentsList'
,
[]):
if
component
[
'id'
]
==
componentId
:
order_id
=
order
[
'id'
]
if
order_id
not
in
task_dict
:
task_dict
[
order_id
]
=
dict
(
id
=
order_id
,
text
=
order
.
get
(
'name'
,
order_id
),
type
=
'project'
,
open
=
True
)
break
# add the component in the task_dict
# add the component in the task_dict
task_dict
[
element
[
'id'
]]
=
dict
(
task_dict
[
element
[
'id'
]]
=
dict
(
id
=
componentId
,
id
=
componentId
,
text
=
componentId
,
text
=
componentId
,
type
=
'component'
,
type
=
'project'
,
open
=
False
)
open
=
False
,
parent
=
order_id
)
k
=
1
k
=
1
...
...
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