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
074486df
Commit
074486df
authored
Feb 23, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused method
parent
7438b339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
dream/plugins/CapacityProjectGantt.py
dream/plugins/CapacityProjectGantt.py
+1
-14
No files found.
dream/plugins/CapacityProjectGantt.py
View file @
074486df
...
...
@@ -7,20 +7,6 @@ from dream.plugins.TimeSupport import TimeSupportMixin
class
CapacityProjectGantt
(
plugin
.
OutputPreparationPlugin
,
TimeSupportMixin
):
def
_generateRandomTaskList
(
self
):
"""Generate some random tasks for the example.
Take care of not using reserved id '0'
"""
for
order_id
in
range
(
3
):
for
order_line_id
in
range
(
random
.
randint
(
1
,
6
)):
start_time
=
random
.
random
()
*
10
duration
=
random
.
random
()
*
10
yield
dict
(
id
=
'%s_%s'
%
(
order_id
,
order_line_id
),
order_id
=
"O%s"
%
order_id
,
start_time
=
start_time
,
duration
=
duration
)
def
postprocess
(
self
,
data
):
"""Post process the data for Gantt gadget
"""
...
...
@@ -42,6 +28,7 @@ class CapacityProjectGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
# loop in the project schedule to create the sub-tasks
projectSchedule
=
element
[
'results'
].
get
(
'schedule'
,{})
for
record
in
projectSchedule
:
task_dict
[
element
[
'id'
]
+
record
[
'stationId'
]]
=
dict
(
id
=
element
[
'id'
]
+
record
[
'stationId'
],
...
...
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