framework: Remove module init() functions

Fixes #1906

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2020-08-03 18:06:48 -04:00
1 parent 0df674dc20
commit d92ca09e19
60 files changed
+110 -573

No files matched your search

+5 -12
View File
@@ -73,6 +73,11 @@ class LetsEncryptApp(app_module.App):
'letsencrypt:index', parent_url_name='system')
self.add(menu_item)
domain_added.connect(on_domain_added)
domain_removed.connect(on_domain_removed)
post_module_loading.connect(_certificate_handle_modified)
def diagnose(self):
"""Run diagnostics and return the results."""
results = super().diagnose()
@@ -84,18 +89,6 @@ class LetsEncryptApp(app_module.App):
return results
def init():
"""Initialize the module."""
global app
app = LetsEncryptApp()
app.set_enabled(True)
domain_added.connect(on_domain_added)
domain_removed.connect(on_domain_removed)
post_module_loading.connect(_certificate_handle_modified)
def setup(helper, old_version=None):
"""Install and configure the module."""
helper.install(managed_packages)