From 9130d203bf15629c51dcc90bce83a8cd730900c4 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 9 Mar 2016 22:34:10 -0400 Subject: [refactor] use latest implementation of service_hooks --- src/leap/bitmask/core/mail_services.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/leap/bitmask') diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py index ba428258..a0be1211 100644 --- a/src/leap/bitmask/core/mail_services.py +++ b/src/leap/bitmask/core/mail_services.py @@ -135,9 +135,7 @@ def is_service_ready(service, provider): return has_service and has_config and is_enabled -class SoledadService(service.Service, HookableService): - - subscribed_to_hooks = ('on_bonafide_auth', 'on_passphrase_entry') +class SoledadService(HookableService): def __init__(self, basedir): service.Service.__init__(self) @@ -286,9 +284,7 @@ class KeymanagerContainer(Container): provider=provider) -class KeymanagerService(service.Service, HookableService): - - subscribed_to_hooks = ('on_new_soledad_instance', 'on_bonafide_auth') +class KeymanagerService(HookableService): def __init__(self, basedir='~/.config/leap'): service.Service.__init__(self) -- cgit v1.2.3