comparison rhodecode/controllers/admin/settings.py @ 3712:08cf7741e5e1 beta

removed obsolete admin_user tmpl context variables
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 08 Apr 2013 02:59:50 +0200
parents 6843cabe9925
children 7e3d89d9d3a2
comparison
equal deleted inserted replaced
3711:58e309c59498 3712:08cf7741e5e1
65 # map.resource('setting', 'settings', controller='admin/settings', 65 # map.resource('setting', 'settings', controller='admin/settings',
66 # path_prefix='/admin', name_prefix='admin_') 66 # path_prefix='/admin', name_prefix='admin_')
67 67
68 @LoginRequired() 68 @LoginRequired()
69 def __before__(self): 69 def __before__(self):
70 c.admin_user = session.get('admin_user') 70 super(SettingsController, self).__before__()
71 c.admin_username = session.get('admin_username')
72 c.modules = sorted([(p.project_name, p.version) 71 c.modules = sorted([(p.project_name, p.version)
73 for p in pkg_resources.working_set] 72 for p in pkg_resources.working_set]
74 + [('git', check_git_version())], 73 + [('git', check_git_version())],
75 key=lambda k: k[0].lower()) 74 key=lambda k: k[0].lower())
76 c.py_version = platform.python_version() 75 c.py_version = platform.python_version()
77 c.platform = platform.platform() 76 c.platform = platform.platform()
78 super(SettingsController, self).__before__()
79 77
80 @HasPermissionAllDecorator('hg.admin') 78 @HasPermissionAllDecorator('hg.admin')
81 def index(self, format='html'): 79 def index(self, format='html'):
82 """GET /admin/settings: All items in the collection""" 80 """GET /admin/settings: All items in the collection"""
83 # url('admin_settings') 81 # url('admin_settings')