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
cf768b3d
Commit
cf768b3d
authored
Dec 16, 2013
by
Georgios Dagkakis
Committed by
Jérome Perrin
Jan 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dismantle haveToDispose enhanced in order to update the receiver
parent
ebe3737c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dream/simulation/Dismantle.py
dream/simulation/Dismantle.py
+7
-2
No files found.
dream/simulation/Dismantle.py
View file @
cf768b3d
...
@@ -154,9 +154,14 @@ class Dismantle(CoreObject):
...
@@ -154,9 +154,14 @@ class Dismantle(CoreObject):
#according to the caller return true or false
#according to the caller return true or false
if
thecaller
in
self
.
nextPart
:
if
thecaller
in
self
.
nextPart
:
return
len
(
self
.
getActiveObjectQueue
())
>
1
and
self
.
waitToDisposePart
if
len
(
self
.
getActiveObjectQueue
())
>
1
and
self
.
waitToDisposePart
:
self
.
receiver
=
thecaller
return
True
elif
thecaller
in
self
.
nextFrame
:
elif
thecaller
in
self
.
nextFrame
:
return
len
(
self
.
getActiveObjectQueue
())
==
1
and
self
.
waitToDisposeFrame
if
len
(
self
.
getActiveObjectQueue
())
==
1
and
self
.
waitToDisposeFrame
:
self
.
receiver
=
thecaller
return
True
return
False
#checks if the frame is emptied
#checks if the frame is emptied
def
frameIsEmpty
(
self
):
def
frameIsEmpty
(
self
):
...
...
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