##// END OF EJS Templates
some docs updates on controller
marcink -
r853:f67868ef beta
parent child Browse files
Show More
@@ -1,7 +1,7 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 package.rhodecode.controllers.admin.admin
4 ~~~~~~~~~~~~~~
3 rhodecode.controllers.admin.admin
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 5
6 6 Controller for Admin panel of Rhodecode
7 7
@@ -1,7 +1,8 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 package.rhodecode.controllers.admin.permissions
4 ~~~~~~~~~~~~~~
3 rhodecode.controllers.admin.permissions
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
5 6 permissions controller for Rhodecode
6 7
7 8 :created_on: Apr 27, 2010
@@ -1,8 +1,15 b''
1 #!/usr/bin/env python
2 # encoding: utf-8
3 # users controller for pylons
4 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
5 #
1 # -*- coding: utf-8 -*-
2 """
3 rhodecode.controllers.admin.users
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
6 Users crud controller for pylons
7
8 :created_on: Apr 4, 2010
9 :author: marcink
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
11 :license: GPLv3, see COPYING for more details.
12 """
6 13 # This program is free software; you can redistribute it and/or
7 14 # modify it under the terms of the GNU General Public License
8 15 # as published by the Free Software Foundation; version 2
@@ -17,26 +24,24 b''
17 24 # along with this program; if not, write to the Free Software
18 25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 26 # MA 02110-1301, USA.
20 """
21 Created on April 4, 2010
22 users controller for pylons
23 @author: marcink
24 """
27
28 import logging
29 import traceback
30 import formencode
25 31
26 32 from formencode import htmlfill
27 33 from pylons import request, session, tmpl_context as c, url
28 34 from pylons.controllers.util import abort, redirect
29 35 from pylons.i18n.translation import _
36
30 37 from rhodecode.lib.exceptions import *
31 38 from rhodecode.lib import helpers as h
32 39 from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator
33 40 from rhodecode.lib.base import BaseController, render
41
34 42 from rhodecode.model.db import User
35 43 from rhodecode.model.forms import UserForm
36 44 from rhodecode.model.user import UserModel
37 import formencode
38 import logging
39 import traceback
40 45
41 46 log = logging.getLogger(__name__)
42 47
@@ -119,7 +124,7 b' class UsersController(BaseController):'
119 124 encoding="UTF-8")
120 125 except Exception:
121 126 log.error(traceback.format_exc())
122 h.flash(_('error occured during update of user %s') \
127 h.flash(_('error occurred during update of user %s') \
123 128 % form_result.get('username'), category='error')
124 129
125 130 return redirect(url('users'))
General Comments 0
You need to be logged in to leave comments. Login now