apps, system: Remove modules and merge into main

- Remove apps and system modules and merge their views into main views.

- Move main_menu from cfg into menu.py.

- Remove dependencies of other modules on apps and system modules.

- Update tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2017-05-05 22:31:45 -04:00
1 parent 184bced823
commit ee7cc98fee
64 files changed
+164 -354

No files matched your search

+3 -3
View File
@@ -24,16 +24,16 @@ import logging
from plinth import actions
from plinth import cfg
from plinth.menu import main_menu
from plinth.signals import service_enabled
import plinth.service as service_module
from plinth.utils import format_lazy
version = 1
is_essential = True
depends = ['system']
managed_packages = ['firewalld']
title = _('Firewall')
@@ -51,7 +51,7 @@ LOGGER = logging.getLogger(__name__)
def init():
"""Initailze firewall module"""
menu = cfg.main_menu.get('system:index')
menu = main_menu.get('system')
menu.add_urlname(title, 'glyphicon-fire', 'firewall:index')
service_enabled.connect(on_service_enabled)