Mercurial > kallithea
comparison rhodecode/model/settings.py @ 1012:551c7d5ae89d beta
#56 added users/groups autocomplete for repository editing.
added docstring for settings controller
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 09 Feb 2011 03:14:00 +0100 |
parents | b232a36cc51f |
children | 1aa1655bf019 |
comparison
equal
deleted
inserted
replaced
1011:9c3e12bde123 | 1012:551c7d5ae89d |
---|---|
1 #!/usr/bin/env python | 1 # -*- coding: utf-8 -*- |
2 # encoding: utf-8 | 2 """ |
3 # Model for RhodeCode settings | 3 rhodecode.model.settings |
4 # Copyright (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | 4 ~~~~~~~~~~~~~~~~~~~~~~~~ |
5 # | 5 |
6 Settings model for RhodeCode | |
7 | |
8 :created on Nov 17, 2010 | |
9 :author: marcink | |
10 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 :license: GPLv3, see COPYING for more details. | |
12 """ | |
6 # This program is free software; you can redistribute it and/or | 13 # This program is free software; you can redistribute it and/or |
7 # modify it under the terms of the GNU General Public License | 14 # modify it under the terms of the GNU General Public License |
8 # as published by the Free Software Foundation; version 2 | 15 # as published by the Free Software Foundation; version 2 |
9 # of the License or (at your opinion) any later version of the license. | 16 # of the License or (at your opinion) any later version of the license. |
10 # | 17 # |
15 # | 22 # |
16 # You should have received a copy of the GNU General Public License | 23 # You should have received a copy of the GNU General Public License |
17 # along with this program; if not, write to the Free Software | 24 # along with this program; if not, write to the Free Software |
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
19 # MA 02110-1301, USA. | 26 # MA 02110-1301, USA. |
20 """ | |
21 Created on Nov 17, 2010 | |
22 Model for RhodeCode | |
23 :author: marcink | |
24 """ | |
25 | 27 |
26 from rhodecode.lib import helpers as h | 28 import logging |
29 | |
27 from rhodecode.model import BaseModel | 30 from rhodecode.model import BaseModel |
28 from rhodecode.model.caching_query import FromCache | 31 from rhodecode.model.caching_query import FromCache |
29 from rhodecode.model.db import RhodeCodeSettings | 32 from rhodecode.model.db import RhodeCodeSettings |
30 from sqlalchemy.orm import joinedload | |
31 import logging | |
32 | 33 |
33 log = logging.getLogger(__name__) | 34 log = logging.getLogger(__name__) |
34 | 35 |
35 class SettingsModel(BaseModel): | 36 class SettingsModel(BaseModel): |
36 """ | 37 """ |