Commit da4bf30f authored by Antoine Millet's avatar Antoine Millet
Browse files

Added a get method on objectdb.

parent 6f4f481f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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.