pagekite: On enable/disable, add/remove domain from names module

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-03-12 16:19:49 -07:00 committed by Veiko Aasa
parent 312ad2800d
commit c9c4823ec3
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -79,6 +79,16 @@ class PagekiteApp(app_module.App):
daemon = Daemon('daemon-pagekite', managed_services[0])
self.add(daemon)
def enable(self):
"""Send domain signals after enabling the app."""
super().enable()
utils.update_names_module(is_enabled=True)
def disable(self):
"""Send domain signals before disabling the app."""
utils.update_names_module(is_enabled=False)
super().disable()
def init():
"""Initialize the PageKite module"""