vregistry.py
changeset 4333 7add8a73a168
parent 4252 6c4f109c2b03
child 4436 294e084f1263
equal deleted inserted replaced
4330:cb7b68679501 4333:7add8a73a168
   137             result += objs
   137             result += objs
   138         return result
   138         return result
   139 
   139 
   140     # dynamic selection methods ################################################
   140     # dynamic selection methods ################################################
   141 
   141 
   142     @deprecated('[3.6] use select instead of object_by_id')
       
   143     def object_by_id(self, oid, *args, **kwargs):
   142     def object_by_id(self, oid, *args, **kwargs):
   144         """return object with the given oid. Only one object is expected to be
   143         """return object with the given oid. Only one object is expected to be
   145         found.
   144         found.
   146 
   145 
   147         raise `ObjectNotFound` if not object with id <oid> in <registry>
   146         raise `ObjectNotFound` if not object with id <oid> in <registry>