Commit 0adfa27e authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in Globals.findObjectById

parent 606cf427
......@@ -190,7 +190,7 @@ def getMethodFromName(dotted_name):
# method finding objects by ID
# =======================================================================
def findObjectById(id):
for obj in G.ObjList + G.ModelResourceList + G.EntityList + G.ObjectInterruptionList:
for obj in G.ObjList + G.ObjectResourceList + G.EntityList + G.ObjectInterruptionList:
if obj.id==id:
return obj
return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment