comparison rhodecode/controllers/admin/permissions.py @ 760:fb7a3b291e64 beta

Cleaned up scm model codes,Admin/admin permissions controller codes
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 25 Nov 2010 22:55:10 +0100
parents 9e9f1b919c0c
children 4bdcc08b04c4
comparison
equal deleted inserted replaced
759:a7f50911a945 760:fb7a3b291e64
1 #!/usr/bin/env python 1 # -*- coding: utf-8 -*-
2 # encoding: utf-8 2 """
3 # permissions controller for pylons 3 package.rhodecode.controllers.admin.permissions
4 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> 4 ~~~~~~~~~~~~~~
5 # 5 permissions controller for Rhodecode
6
7 :created_on: Apr 27, 2010
8 :author: marcink
9 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
10 :license: GPLv3, see COPYING for more details.
11 """
6 # This program is free software; you can redistribute it and/or 12 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License 13 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; version 2 14 # as published by the Free Software Foundation; version 2
9 # of the License or (at your opinion) any later version of the license. 15 # of the License or (at your opinion) any later version of the license.
10 # 16 #
15 # 21 #
16 # You should have received a copy of the GNU General Public License 22 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software 23 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 # MA 02110-1301, USA. 25 # MA 02110-1301, USA.
20 """
21 Created on April 27, 2010
22 permissions controller for pylons
23 @author: marcink
24 """
25 26
26 from formencode import htmlfill 27 from formencode import htmlfill
27 from pylons import request, session, tmpl_context as c, url 28 from pylons import request, session, tmpl_context as c, url
28 from pylons.controllers.util import abort, redirect 29 from pylons.controllers.util import abort, redirect
29 from pylons.i18n.translation import _ 30 from pylons.i18n.translation import _