override complete() to change the behaviour of Cmd completion

This commit is contained in:
Romain Bignon 2010-09-24 13:56:24 -04:00
commit 0eba4302a5
4 changed files with 34 additions and 17 deletions

View file

@ -322,4 +322,4 @@ class ConsoleApplication(BaseApplication):
Call Weboob.do(), after having filled the yielded object, if selected fields are given by user.
"""
return self.weboob.do(self._complete, self.options.count, self.selected_fields, function, *args, **kwargs)
return self.weboob.do(self._do_complete, self.options.count, self.selected_fields, function, *args, **kwargs)