Mercurial > kallithea
comparison rhodecode/websetup.py @ 2031:82a88013a3fd
merge 1.3 into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Feb 2012 17:25:09 +0200 |
parents | bf263968da47 89efedac4e6c |
children | 533a126dc9ab |
comparison
equal
deleted
inserted
replaced
2005:ab0e122b38a7 | 2031:82a88013a3fd |
---|---|
5 | 5 |
6 Weboperations and setup for rhodecode | 6 Weboperations and setup for rhodecode |
7 | 7 |
8 :created_on: Dec 11, 2010 | 8 :created_on: Dec 11, 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 |
21 # GNU General Public License for more details. | 21 # GNU General Public License for more details. |
22 # | 22 # |
23 # 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 |
24 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 24 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
25 | 25 |
26 import os | |
27 import logging | 26 import logging |
28 | 27 |
29 from rhodecode.config.environment import load_environment | 28 from rhodecode.config.environment import load_environment |
30 from rhodecode.lib.db_manage import DbManage | 29 from rhodecode.lib.db_manage import DbManage |
30 from rhodecode.model.meta import Session | |
31 | 31 |
32 | 32 |
33 log = logging.getLogger(__name__) | 33 log = logging.getLogger(__name__) |
34 | 34 |
35 | 35 |
43 dbmanage.create_settings(dbmanage.config_prompt(None)) | 43 dbmanage.create_settings(dbmanage.config_prompt(None)) |
44 dbmanage.create_default_user() | 44 dbmanage.create_default_user() |
45 dbmanage.admin_prompt() | 45 dbmanage.admin_prompt() |
46 dbmanage.create_permissions() | 46 dbmanage.create_permissions() |
47 dbmanage.populate_default_permissions() | 47 dbmanage.populate_default_permissions() |
48 | 48 Session.commit() |
49 load_environment(conf.global_conf, conf.local_conf, initial=True) | 49 load_environment(conf.global_conf, conf.local_conf, initial=True) |