Menu

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

Download this file

46 lines (34 with data), 1.1 kB

 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
38
39
40
41
42
43
44
45
from freeadmin.tree import TreeNode
from django.utils.translation import ugettext_lazy as _
import models
NAME = _('Account')
ICON = u'AccountIcon'
class ChangePass(TreeNode):
gname = 'account.ChangePass'
name = _('Change Password')
type = 'openaccount'
icon = u'ChangePasswordIcon'
append_app = False
class ChangeAdmin(TreeNode):
gname = 'account.ChangeAdmin'
name = _('Change Admin User')
type = 'openaccount'
icon = u'ChangeAdminIcon'
append_app = False
class MyAccount(TreeNode):
name = _('My Account')
icon = u'MyAccountIcon'
order = -1
def __init__(self, *args, **kwargs):
super(MyAccount, self).__init__(*args, **kwargs)
self.append_children([ChangePass(), ChangeAdmin()])
class ViewUsers(TreeNode):
gname = 'account.bsdUsers.View'
name = _('View All Users')
type = 'openaccount'
append_app = False
class ViewGroups(TreeNode):
gname = 'account.bsdGroups.View'
name = _('View All Groups')
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.