Commit da4bf30f authored by Antoine Millet's avatar Antoine Millet

Added a get method on objectdb.

parent 6f4f481f
......@@ -387,6 +387,12 @@ class ObjectsDB(object):
return ids
def get(self, oid):
'''
Get the specified object by it id or return None.
'''
return self._objects.get(oid)
def all(self, tags, to_check):
'''
Get all the objects registered on the server with specified tags.
......
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