comparison rhodecode/controllers/admin/users.py @ 1824:89efedac4e6c beta

2012 copyrights
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 04 Jan 2012 03:50:07 +0200
parents cf51bbfb120e
children 82a88013a3fd 24d906650cc0
comparison
equal deleted inserted replaced
1823:f45e83492484 1824:89efedac4e6c
5 5
6 Users crud controller for pylons 6 Users crud controller for pylons
7 7
8 :created_on: Apr 4, 2010 8 :created_on: Apr 4, 2010
9 :author: marcink 9 :author: marcink
10 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> 10 :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
11 :license: GPLv3, see COPYING for more details. 11 :license: GPLv3, see COPYING for more details.
12 """ 12 """
13 # This program is free software: you can redistribute it and/or modify 13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by 14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or 15 # the Free Software Foundation, either version 3 of the License, or
27 import traceback 27 import traceback
28 import formencode 28 import formencode
29 29
30 from formencode import htmlfill 30 from formencode import htmlfill
31 from pylons import request, session, tmpl_context as c, url, config 31 from pylons import request, session, tmpl_context as c, url, config
32 from pylons.controllers.util import abort, redirect 32 from pylons.controllers.util import redirect
33 from pylons.i18n.translation import _ 33 from pylons.i18n.translation import _
34 34
35 from rhodecode.lib.exceptions import DefaultUserException, \ 35 from rhodecode.lib.exceptions import DefaultUserException, \
36 UserOwnsReposException 36 UserOwnsReposException
37 from rhodecode.lib import helpers as h 37 from rhodecode.lib import helpers as h
38 from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator 38 from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator
39 from rhodecode.lib.base import BaseController, render 39 from rhodecode.lib.base import BaseController, render
40 40
41 from rhodecode.model.db import User, UserRepoToPerm, UserToPerm, Permission 41 from rhodecode.model.db import User, Permission
42 from rhodecode.model.forms import UserForm 42 from rhodecode.model.forms import UserForm
43 from rhodecode.model.user import UserModel 43 from rhodecode.model.user import UserModel
44 from rhodecode.model.meta import Session 44 from rhodecode.model.meta import Session
45 45
46 log = logging.getLogger(__name__) 46 log = logging.getLogger(__name__)