From 9fee613cba56d7a84ac5a49d9179257d0161b9cf Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 28 Oct 2013 17:00:02 +0100 Subject: [PATCH] Call self.weboob.do in ReplApplication.get_object_list --- weboob/tools/application/repl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 2d10ea12..ce52c910 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -242,12 +242,14 @@ class ReplApplication(Cmd, ConsoleApplication): return obj return obj - def get_object_list(self, method=None): + def get_object_list(self, method=None, *args, **kwargs): # return cache if not empty if len(self.objects) > 0: return self.objects elif method is not None: - for backend, object in self.do(method): + fields = None + kwargs['backends'] = self.enabled_backends + for backend, object in self.weboob.do(self._do_complete, None, None, method, *args, **kwargs): self.add_object(object) return self.objects # XXX: what can we do without method?