summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/dispatcher.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-08-15 18:33:44 +0200
committerKali Kaneko <kali@leap.se>2016-08-15 18:33:44 +0200
commit7deebbcc9be005c6b29131985a218f571b89ab8d (patch)
tree0052ba1a603f3b2bdb5484cc8a1300db9dc99638 /src/leap/bitmask/core/dispatcher.py
parentc8520be5c0a6c1c0e804f752d71baaf47367a0b8 (diff)
[bug] rename mail get-token commands
otherwise the command cannot be dispatched. return dicts instead of strings too.
Diffstat (limited to 'src/leap/bitmask/core/dispatcher.py')
-rw-r--r--src/leap/bitmask/core/dispatcher.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index f57790e2..e81cad62 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -35,7 +35,7 @@ class SubCommand(object):
_method = getattr(self, 'do_' + subcmd.upper(), None)
if not _method:
raise RuntimeError('No such subcommand')
- return _method(service, *parts, **kw)
+ return defer.maybeDeferred(_method, service, *parts, **kw)
class UserCmd(SubCommand):
@@ -105,6 +105,7 @@ class MailCmd(SubCommand):
@register_method('dict')
def do_ENABLE(self, service, *parts, **kw):
+ # FIXME -- service doesn't have this method
d = service.do_enable_service(self.label)
return d