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
11dfd0ef
Commit
11dfd0ef
authored
Aug 13, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Globals.findObjectFromId extended to find objects of all categories
parent
530ee417
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dream/simulation/Globals.py
dream/simulation/Globals.py
+1
-1
No files found.
dream/simulation/Globals.py
View file @
11dfd0ef
...
...
@@ -167,7 +167,7 @@ def getClassFromName(dotted_name):
# method finding objects by ID
# =======================================================================
def
findObjectById
(
id
):
for
obj
in
G
.
ObjList
:
for
obj
in
G
.
ObjList
+
G
.
ModelResourceList
+
G
.
EntityList
+
G
.
ObjectInterruptionList
:
if
obj
.
id
==
id
:
return
obj
return
None
...
...
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