diff --git a/rhodecode/templates/debug_style/alerts.html b/rhodecode/templates/debug_style/alerts.html --- a/rhodecode/templates/debug_style/alerts.html +++ b/rhodecode/templates/debug_style/alerts.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/buttons.html b/rhodecode/templates/debug_style/buttons.html --- a/rhodecode/templates/debug_style/buttons.html +++ b/rhodecode/templates/debug_style/buttons.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/code-block.html b/rhodecode/templates/debug_style/code-block.html --- a/rhodecode/templates/debug_style/code-block.html +++ b/rhodecode/templates/debug_style/code-block.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%namespace name="base" file="/base/base.mako"/> <%inherit file="/debug_style/index.html"/> @@ -534,7 +533,7 @@ 39 40 41 -42
# -*- coding: utf-8 -*- +42
# Published under Business Source License.
# Read the full license text at https://rhodecode.com/licenses. @@ -692,7 +691,7 @@ File Edit

-                
1
# -*- coding: utf-8 -*-
2
 
3
# Published under Commercial License.
4
# Read the full license text at https://rhodecode.com/licenses.
5
"""
6
rhodecode.websetup
7
~~~~~~~~~~~~~~~~~~
8
 
9
Weboperations and setup for rhodecode
10
 
11
:created_on: Dec 11, 2010
12
:author: marcink
13
:copyright: (c) 2013-2015 RhodeCode GmbH.
14
:license: Commercial License, see LICENSE for more details.
15
"""
16
 
17
import logging
18
 
19
from rhodecode.config.environment import load_environment
20
from rhodecode.lib.db_manage import DbManage
21
from rhodecode.model.meta import Session
22
 
23
 
24
log = logging.getLogger(__name__)  # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.
25
 
26
 
27
def setup_app(command, conf, vars):
28
    """Place any commands to setup rhodecode here"""
29
    dbconf = conf['sqlalchemy.db1.url']
30
    dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
31
                        tests=False, cli_args=command.options.__dict__)
32
    dbmanage.create_tables(override=True)
33
    dbmanage.set_db_version()
34
    opts = dbmanage.config_prompt(None)
35
    dbmanage.create_settings(opts)
36
    dbmanage.create_default_user()
37
    dbmanage.admin_prompt()
38
    dbmanage.create_permissions()
39
    dbmanage.populate_default_permissions()
40
    Session().commit()
41
    load_environment(conf.global_conf, conf.local_conf, initial=True)
42
 
 
+
1
2
 
3
# Published under Commercial License.
4
# Read the full license text at https://rhodecode.com/licenses.
5
"""
6
rhodecode.websetup
7
~~~~~~~~~~~~~~~~~~
8
 
9
Weboperations and setup for rhodecode
10
 
11
:created_on: Dec 11, 2010
12
:author: marcink
13
:copyright: (c) 2013-2015 RhodeCode GmbH.
14
:license: Commercial License, see LICENSE for more details.
15
"""
16
 
17
import logging
18
 
19
from rhodecode.config.environment import load_environment
20
from rhodecode.lib.db_manage import DbManage
21
from rhodecode.model.meta import Session
22
 
23
 
24
log = logging.getLogger(__name__)  # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.
25
 
26
 
27
def setup_app(command, conf, vars):
28
    """Place any commands to setup rhodecode here"""
29
    dbconf = conf['sqlalchemy.db1.url']
30
    dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
31
                        tests=False, cli_args=command.options.__dict__)
32
    dbmanage.create_tables(override=True)
33
    dbmanage.set_db_version()
34
    opts = dbmanage.config_prompt(None)
35
    dbmanage.create_settings(opts)
36
    dbmanage.create_default_user()
37
    dbmanage.admin_prompt()
38
    dbmanage.create_permissions()
39
    dbmanage.populate_default_permissions()
40
    Session().commit()
41
    load_environment(conf.global_conf, conf.local_conf, initial=True)
42
 
 
diff --git a/rhodecode/templates/debug_style/collapsable-content.html b/rhodecode/templates/debug_style/collapsable-content.html --- a/rhodecode/templates/debug_style/collapsable-content.html +++ b/rhodecode/templates/debug_style/collapsable-content.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/email_plain_rendered.mako b/rhodecode/templates/debug_style/email_plain_rendered.mako --- a/rhodecode/templates/debug_style/email_plain_rendered.mako +++ b/rhodecode/templates/debug_style/email_plain_rendered.mako @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%def name="title()"> diff --git a/rhodecode/templates/debug_style/emails.html b/rhodecode/templates/debug_style/emails.html --- a/rhodecode/templates/debug_style/emails.html +++ b/rhodecode/templates/debug_style/emails.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/form-elements-small.html b/rhodecode/templates/debug_style/form-elements-small.html --- a/rhodecode/templates/debug_style/form-elements-small.html +++ b/rhodecode/templates/debug_style/form-elements-small.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/form-elements.html b/rhodecode/templates/debug_style/form-elements.html --- a/rhodecode/templates/debug_style/form-elements.html +++ b/rhodecode/templates/debug_style/form-elements.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/form-inline.html b/rhodecode/templates/debug_style/form-inline.html --- a/rhodecode/templates/debug_style/form-inline.html +++ b/rhodecode/templates/debug_style/form-inline.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/form-vertical.html b/rhodecode/templates/debug_style/form-vertical.html --- a/rhodecode/templates/debug_style/form-vertical.html +++ b/rhodecode/templates/debug_style/form-vertical.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/forms.html b/rhodecode/templates/debug_style/forms.html --- a/rhodecode/templates/debug_style/forms.html +++ b/rhodecode/templates/debug_style/forms.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/icons.html b/rhodecode/templates/debug_style/icons.html --- a/rhodecode/templates/debug_style/icons.html +++ b/rhodecode/templates/debug_style/icons.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/index.html b/rhodecode/templates/debug_style/index.html --- a/rhodecode/templates/debug_style/index.html +++ b/rhodecode/templates/debug_style/index.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%def name="title()"> diff --git a/rhodecode/templates/debug_style/labels.html b/rhodecode/templates/debug_style/labels.html --- a/rhodecode/templates/debug_style/labels.html +++ b/rhodecode/templates/debug_style/labels.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/layout-form-sidebar.html b/rhodecode/templates/debug_style/layout-form-sidebar.html --- a/rhodecode/templates/debug_style/layout-form-sidebar.html +++ b/rhodecode/templates/debug_style/layout-form-sidebar.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/login.html b/rhodecode/templates/debug_style/login.html --- a/rhodecode/templates/debug_style/login.html +++ b/rhodecode/templates/debug_style/login.html @@ -1,7 +1,5 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> - <%def name="breadcrumbs_links()"> ${h.link_to(_('Style'), h.route_path('debug_style_home'))} » diff --git a/rhodecode/templates/debug_style/login2.html b/rhodecode/templates/debug_style/login2.html --- a/rhodecode/templates/debug_style/login2.html +++ b/rhodecode/templates/debug_style/login2.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <% # Tweaks needed to simulate things diff --git a/rhodecode/templates/debug_style/panels.html b/rhodecode/templates/debug_style/panels.html --- a/rhodecode/templates/debug_style/panels.html +++ b/rhodecode/templates/debug_style/panels.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/tables-wide.html b/rhodecode/templates/debug_style/tables-wide.html --- a/rhodecode/templates/debug_style/tables-wide.html +++ b/rhodecode/templates/debug_style/tables-wide.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/tables.html b/rhodecode/templates/debug_style/tables.html --- a/rhodecode/templates/debug_style/tables.html +++ b/rhodecode/templates/debug_style/tables.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()"> diff --git a/rhodecode/templates/debug_style/typography.html b/rhodecode/templates/debug_style/typography.html --- a/rhodecode/templates/debug_style/typography.html +++ b/rhodecode/templates/debug_style/typography.html @@ -1,4 +1,3 @@ -## -*- coding: utf-8 -*- <%inherit file="/debug_style/index.html"/> <%def name="breadcrumbs_links()">