Menu

[r10232]: / trunk / gui / account / nav.py  Maximize  Restore  History

Download this file

38 lines (28 with data), 960 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from freeadmin.tree import TreeNode
from django.utils.translation import ugettext_lazy as _
from . import models
NAME = _('Account')
ICON = u'AccountIcon'
class AdminAccount(TreeNode):
gname = 'AdminAccount'
name = _('Admin Account')
icon = u'AdminAccountIcon'
def __init__(self, *args, **kwargs):
super(AdminAccount, self).__init__(*args, **kwargs)
chpw = TreeNode('ChangePass')
chpw.name = _('Change Password')
chpw.type = 'openaccount'
chpw.icon = u'ChangePasswordIcon'
chad = TreeNode('ChangeAdmin')
chad.name = _('Change Admin User')
chad.type = 'openaccount'
chad.icon = u'ChangeAdminIcon'
self.append_children([chpw, chad])
class ViewUsers(TreeNode):
gname = 'account.bsdUsers.View'
type = 'openaccount'
append_app = False
class ViewGroups(TreeNode):
gname = 'account.bsdGroups.View'
type = 'openaccount'
append_app = False
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.