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,8 +24,8 @@ import json
from plinth import actions
from plinth import action_utils
from plinth import cfg
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.modules.names import SERVICES
from plinth.signals import domain_added, domain_removed
@@ -34,7 +34,7 @@ from . import utils
version = 2
depends = ['apps', 'names']
depends = ['names']
managed_packages = ['tor', 'tor-geoipdb', 'torsocks', 'obfs4proxy',
'apt-transport-tor']
@@ -58,7 +58,7 @@ bridge_service = None
def init():
"""Initialize the module."""
menu = cfg.main_menu.get('apps:index')
menu = main_menu.get('apps')
menu.add_urlname(title, 'glyphicon-eye-close', 'tor:index')
setup_helper = globals()['setup_helper']