get_object() method requires an unique backend ID
This commit is contained in:
parent
a290795ac4
commit
9e3b1a049e
1 changed files with 1 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
||||||
for backend, obj in self.do('fillobj', obj, fields, backends=[obj.backend]):
|
for backend, obj in self.do('fillobj', obj, fields, backends=[obj.backend]):
|
||||||
if obj:
|
if obj:
|
||||||
return obj
|
return obj
|
||||||
_id, backend_name = self.parse_id(_id)
|
_id, backend_name = self.parse_id(_id, unique_backend=True)
|
||||||
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:
|
||||||
|
|
@ -446,7 +446,6 @@ class ReplApplication(Cmd, ConsoleApplication):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
# -- default REPL commands ---------
|
# -- default REPL commands ---------
|
||||||
|
|
||||||
def do_quit(self, arg):
|
def do_quit(self, arg):
|
||||||
"""
|
"""
|
||||||
Quit the application.
|
Quit the application.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue