##// END OF EJS Templates
fixed import problems
marcink -
r841:78b3d2d7 beta
parent child Browse files
Show More
@@ -43,10 +43,6 b' from rhodecode.model.db import User, Per'
43 43
44 44 from sqlalchemy.engine import create_engine
45 45
46 from rhodecode.lib.dbmigrate.migrate.versioning import api
47 from rhodecode.lib.dbmigrate.migrate.exceptions import \
48 DatabaseNotControlledError
49
50 46 log = logging.getLogger(__name__)
51 47
52 48 class DbManage(object):
@@ -111,6 +107,11 b' class DbManage(object):'
111 107
112 108 :param revision: revision to upgrade to
113 109 """
110
111 from rhodecode.lib.dbmigrate.migrate.versioning import api
112 from rhodecode.lib.dbmigrate.migrate.exceptions import \
113 DatabaseNotControlledError
114
114 115 upgrade = ask_ok('You are about to perform database upgrade, make '
115 116 'sure You backed up your database before. '
116 117 'Continue ? [y/n]')
@@ -1,8 +1,36 b''
1 """Setup the rhodecode application"""
1 # -*- coding: utf-8 -*-
2 """
3 rhodecode.websetup
4 ~~~~~~~~~~~~~~~~~~
5
6 Weboperations and setup for rhodecode
7
8 :created_on: Dec 11, 2010
9 :author: marcink
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
11 :license: GPLv3, see COPYING for more details.
12 """
13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; version 2
16 # of the License or (at your opinion) any later version of the license.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26 # MA 02110-1301, USA.
27
28 import os
29 import logging
30
2 31 from rhodecode.config.environment import load_environment
3 32 from rhodecode.lib.db_manage import DbManage
4 import logging
5 import os
33
6 34
7 35 log = logging.getLogger(__name__)
8 36
General Comments 0
You need to be logged in to leave comments. Login now