mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
184bced823
commit
ee7cc98fee
64 files changed
+164
-354
No files matched your search
@@ -22,16 +22,15 @@ Plinth module to manage users
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
import subprocess
|
||||
|
||||
from plinth import cfg
|
||||
from plinth import action_utils
|
||||
from plinth import actions
|
||||
from plinth.menu import main_menu
|
||||
|
||||
|
||||
version = 1
|
||||
|
||||
is_essential = True
|
||||
|
||||
depends = ['system']
|
||||
|
||||
managed_packages = ['ldapscripts', 'ldap-utils', 'libnss-ldapd',
|
||||
'libpam-ldapd', 'nslcd', 'slapd']
|
||||
|
||||
@@ -48,7 +47,7 @@ title = _('Users and Groups')
|
||||
|
||||
def init():
|
||||
"""Intialize the user module."""
|
||||
menu = cfg.main_menu.get('system:index')
|
||||
menu = main_menu.get('system')
|
||||
menu.add_urlname(title, 'glyphicon-user', 'users:index')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user