mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
0df674dc20
commit
d92ca09e19
60 files changed
+110
-573
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user