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

+10 -4
View File
@@ -8,7 +8,7 @@ import os
from django.urls import reverse
from plinth import cfg, module_loader
from plinth import app, cfg, module_loader
from plinth.signals import post_setup
version = 1
@@ -34,9 +34,15 @@ _all_first_boot_steps = None
_is_completed = None
def init():
"""Initialize the first boot module."""
post_setup.connect(_clear_first_boot_steps)
class FirstBootApp(app.App):
"""FreedomBox app for First Boot."""
app_id = 'first_boot'
def __init__(self):
"""Create components for the app."""
super().__init__()
post_setup.connect(_clear_first_boot_steps)
def _clear_first_boot_steps(sender, module_name, **kwargs):