handle ids and providers frontend-side using helper

This commit is contained in:
Christophe Benz 2010-06-16 22:13:16 +02:00
commit d857f05a3b
3 changed files with 27 additions and 18 deletions

View file

@ -222,3 +222,10 @@ class ConsoleApplication(BaseApplication):
weboobcfg.command_modules(*caps)
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):
try:
_id, backend_name = _id.split('@')
except ValueError:
backend_name = None
return _id, backend_name