users: Use new setup mechanism

This commit is contained in:
Sunil Mohan Adapa 2016-02-12 18:58:01 +05:30
parent b5ccada3a6
commit bee0260af7
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

View File

@ -25,14 +25,19 @@ import subprocess
from plinth import cfg
from plinth import action_utils
version = 1
is_essential = True
depends = ['system']
title = _('Users and Groups')
def init():
"""Intialize the user module."""
menu = cfg.main_menu.get('system:index')
menu.add_urlname(_('Users and Groups'), 'glyphicon-user', 'users:index',
15)
menu.add_urlname(title, 'glyphicon-user', 'users:index', 15)
def diagnose():