Add missing fillobj() call on get_object

fillobj was only called when getting previously fetched objects in
interactive mode.
This probably wasn't detected because most get_* backend functions
usually fill a lot of fields by themselves.
This commit is contained in:
Laurent Bachelier 2011-04-21 22:59:30 +02:00
commit 7bf794b7e5

View file

@ -181,6 +181,7 @@ class ReplApplication(Cmd, ConsoleApplication):
backend_names = (backend_name,) if backend_name is not None else self.enabled_backends backend_names = (backend_name,) if backend_name is not None else self.enabled_backends
for backend, obj in self.do(method, _id, backends=backend_names): for backend, obj in self.do(method, _id, backends=backend_names):
if obj: if obj:
backend.fillobj(obj, fields)
return obj return obj
def unload_backends(self, *args, **kwargs): def unload_backends(self, *args, **kwargs):