mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
gitweb: Split app initialization
Tests: - When a public repo is added, upon startup, the front page shortcut is shown. - When all public repos are removed, upon startup, the front page shortcut is not shown. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
9c091df245
commit
3c44fa9a07
@ -97,6 +97,8 @@ class GitwebApp(app_module.App):
|
|||||||
**manifest.backup)
|
**manifest.backup)
|
||||||
self.add(backup_restore)
|
self.add(backup_restore)
|
||||||
|
|
||||||
|
def post_init(self):
|
||||||
|
"""Perform post initialization operations."""
|
||||||
setup_helper = globals()['setup_helper']
|
setup_helper = globals()['setup_helper']
|
||||||
if setup_helper.get_state() != 'needs-setup':
|
if setup_helper.get_state() != 'needs-setup':
|
||||||
self.update_service_access()
|
self.update_service_access()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user