Commit 9a4ff50d authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

findObjectById now searches ammong orders too

parent 7da429df
...@@ -185,7 +185,7 @@ def getMethodFromName(dotted_name): ...@@ -185,7 +185,7 @@ def getMethodFromName(dotted_name):
# method finding objects by ID # method finding objects by ID
# ======================================================================= # =======================================================================
def findObjectById(id): def findObjectById(id):
for obj in G.ObjList + G.ObjectResourceList + G.EntityList + G.ObjectInterruptionList: for obj in G.ObjList + G.ObjectResourceList + G.EntityList + G.ObjectInterruptionList + G.OrderList:
if obj.id==id: if obj.id==id:
return obj return obj
return None 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