constrain backend search

This commit is contained in:
Christophe Benz 2010-06-17 17:04:13 +02:00
commit 9a8ffd971d
2 changed files with 6 additions and 6 deletions

View file

@ -223,9 +223,9 @@ class ConsoleApplication(BaseApplication):
logging.error(u'You can configure a backends using the "weboobcfg add" command:\nweboobcfg add <name> [options..]')
sys.exit(0)
def split_id(self, _id):
def parse_id(self, _id):
try:
_id, backend_name = _id.split('@')
_id, backend_name = _id.rsplit('@', 1)
except ValueError:
backend_name = None
return _id, backend_name