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
3cfc9aeb
Commit
3cfc9aeb
authored
Jun 16, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction to readWip.findFile
parent
6dff2983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
dream/simulation/readWip.py
dream/simulation/readWip.py
+3
-5
No files found.
dream/simulation/readWip.py
View file @
3cfc9aeb
...
...
@@ -73,8 +73,8 @@ def findFile(seekName, path, implicitExt=''):
"""
for
file
in
os
.
listdir
(
path
):
if
file
.
endswith
(
os
.
extsep
+
implicitExt
)
and
file
.
startswith
(
seekName
):
if
os
.
path
.
isfile
(
file
):
full_path
=
os
.
path
.
join
(
path
,
file
)
full_path
=
os
.
path
.
join
(
path
,
file
)
if
os
.
path
.
isfile
(
full_path
):
return
full_path
return
None
...
...
@@ -637,6 +637,7 @@ def setStartWip():
if their last station is INJM-MAN or INJM then they are already processed
'''
from Globals import SetWipTypeError, setWIP
from Globals import findObjectById
json_data = G.wip_Data
#Read the json data
WIP = json_data['
WIP
'] # read from the dictionary the dict with key '
WIP
'
...
...
@@ -667,7 +668,6 @@ def setStartWip():
# print objectID
#===================================================================
assert objectID!='', '
there
must
be
a
stationID
given
to
set
the
WIP
'
from Globals import findObjectById
object=Globals.findObjectById(objectID)
assert object!=None, '
the
station
defined
in
the
WIP
is
not
a
valid
Station
'
# find the station by its id, if there is no station then place it
...
...
@@ -760,7 +760,6 @@ def setStartWip():
# print objectID, '((0)) '*10
#===================================================================
assert
objectID
!=
''
,
'there must be a stationID given to set the WIP'
from
Globals
import
findObjectById
object
=
Globals
.
findObjectById
(
objectID
)
assert
object
!=
None
,
'the station defined in the WIP is not a valid Station'
# find the station by its id, if there is no station then place it
...
...
@@ -823,7 +822,6 @@ def setStartWip():
elif
entity
.
id
in
WIP
.
keys
():
objectID
=
WIP
[
entity
.
id
][
"station"
]
assert
objectID
!=
''
,
'there must be a stationID given to set the WIP'
from
Globals
import
findObjectById
object
=
Globals
.
findObjectById
(
objectID
)
assert
object
!=
None
,
'the station defined in the WIP is not a valid Station'
# find the station by its id, if there is no station then place it
...
...
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