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
75187032
Commit
75187032
authored
Feb 19, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReadJSWIP plugin corrected
parent
e7092d86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
dream/plugins/ReadJSWIP.py
dream/plugins/ReadJSWIP.py
+9
-3
No files found.
dream/plugins/ReadJSWIP.py
View file @
75187032
...
@@ -5,7 +5,6 @@ import random
...
@@ -5,7 +5,6 @@ import random
import
operator
import
operator
from
datetime
import
datetime
from
datetime
import
datetime
import
copy
import
copy
import
routeQuery
from
dream.plugins
import
plugin
from
dream.plugins
import
plugin
...
@@ -17,8 +16,15 @@ class ReadJSWIP(plugin.InputPreparationPlugin):
...
@@ -17,8 +16,15 @@ class ReadJSWIP(plugin.InputPreparationPlugin):
def
preprocess
(
self
,
data
):
def
preprocess
(
self
,
data
):
""" inserts the wip as introduced in the GUI to the BOM
""" inserts the wip as introduced in the GUI to the BOM
"""
"""
WIPdata
=
data
[
"input"
][
"wip_spreadsheet"
]
WIPdata
=
data
[
"input"
].
get
(
"wip_spreadsheet"
,[])
wip
=
data
[
"input"
][
"BOM"
][
"WIP"
]
try
:
BOM
=
data
[
"input"
][
"BOM"
]
except
:
BOM
=
data
[
"input"
][
"BOM"
]
=
{}
try
:
wip
=
BOM
[
"WIP"
]
except
:
wip
=
BOM
[
"WIP"
]
=
{}
if
WIPdata
:
if
WIPdata
:
WIPdata
.
pop
(
0
)
# pop the column names
WIPdata
.
pop
(
0
)
# pop the column names
for
WIPitem
in
WIPdata
:
for
WIPitem
in
WIPdata
:
...
...
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