diff --git a/rhodecode/templates/debug_style/alerts.html b/rhodecode/templates/debug_style/alerts.html index 02b12122..260fe777 100644 --- 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 index 142d35c0..4f41de66 100644 --- 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 index e4c9c4b4..af93af8e 100644 --- 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 index eb45a618..5a98ed49 100644 --- 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 index e5e65711..560b181a 100644 --- 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 index 66c67127..df67fa82 100644 --- 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 index 53bceab8..7716938d 100644 --- 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 index 6643d549..a147b671 100644 --- 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 index 16f916ab..a6750673 100644 --- 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 index 97b23bd3..49389c86 100644 --- 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 index 4c3b1fe0..34c451ed 100644 --- 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 index ec447b14..93980ef4 100644 --- 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 index 35fc5d98..72705ff3 100644 --- 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 index 9e957cc7..801ed1f6 100644 --- 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 index 770ee562..c08a41c4 100644 --- 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 index cc5f83c7..9e9f45ea 100644 --- 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 index 32f965e6..b2f3215f 100644 --- 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 index 41b7378a..b7379a1a 100644 --- 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 index 029c124f..1c40973b 100644 --- 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 index 97993fcd..850af761 100644 --- 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 index 39de5d70..9a412a8c 100644 --- 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()">