##// END OF EJS Templates
pyramid: use a faster scan method for faster app start.
marcink -
r1991:32f1629e default
parent child Browse files
Show More
@@ -0,0 +1,19 b''
1 # -*- coding: utf-8 -*-
2
3 # Copyright (C) 2016-2017 RhodeCode GmbH
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License, version 3
7 # (only), as published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # This program is dual-licensed. If you wish to learn more about the
18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 # and proprietary license terms, please see https://rhodecode.com/licenses/ No newline at end of file
@@ -189,4 +189,4 b' def includeme(config):'
189 189 config.include(admin_routes, route_prefix=ADMIN_PREFIX)
190 190
191 191 # Scan module for configuration decorators.
192 config.scan()
192 config.scan('.views', ignore='.tests')
@@ -87,4 +87,4 b' def includeme(config):'
87 87 pattern=settings.get('channelstream.proxy_path') or '/_channelstream')
88 88
89 89 # Scan module for configuration decorators.
90 config.scan()
90 config.scan('.views', ignore='.tests')
@@ -36,7 +36,7 b' def includeme(config):'
36 36 custom_predicates=(debug_style_enabled,))
37 37
38 38 # Scan module for configuration decorators.
39 config.scan()
39 config.scan('.views', ignore='.tests')
40 40
41 41
42 42
@@ -59,4 +59,4 b' def admin_routes(config):'
59 59 def includeme(config):
60 60 config.include(admin_routes, route_prefix=ADMIN_PREFIX)
61 61 # Scan module for configuration decorators.
62 config.scan()
62 config.scan('.views', ignore='.tests')
@@ -46,4 +46,4 b' def includeme(config):'
46 46 routing_links.connect_redirection_links(config)
47 47
48 48 # Scan module for configuration decorators.
49 config.scan()
49 config.scan('.views', ignore='.tests')
@@ -50,4 +50,4 b' def admin_routes(config):'
50 50 def includeme(config):
51 51 config.include(admin_routes, route_prefix=ADMIN_PREFIX)
52 52 # Scan module for configuration decorators.
53 config.scan() No newline at end of file
53 config.scan('.views', ignore='.tests')
@@ -41,4 +41,4 b' def includeme(config):'
41 41 pattern=ADMIN_PREFIX + '/password_reset_confirmation')
42 42
43 43 # Scan module for configuration decorators.
44 config.scan()
44 config.scan('.views', ignore='.tests')
@@ -123,4 +123,4 b' def includeme(config):'
123 123 pattern=ADMIN_PREFIX + '/my_account/test_channelstream')
124 124
125 125 # Scan module for configuration decorators.
126 config.scan()
126 config.scan('.views', ignore='.tests')
@@ -38,4 +38,4 b' def includeme(config):'
38 38 config.include(admin_routes, route_prefix=ADMIN_PREFIX + '/ops')
39 39
40 40 # Scan module for configuration decorators.
41 config.scan()
41 config.scan('.views', ignore='.tests')
@@ -29,5 +29,5 b' def includeme(config):'
29 29 pattern='/{repo_group_name:.*?[^/]}', repo_group_route=True)
30 30
31 31 # Scan module for configuration decorators.
32 config.scan()
32 config.scan('.views', ignore='.tests')
33 33
@@ -384,4 +384,4 b' def includeme(config):'
384 384 pattern='/{repo_name:.*?[^/]}', repo_route=True)
385 385
386 386 # Scan module for configuration decorators.
387 config.scan()
387 config.scan('.views', ignore='.tests')
@@ -31,14 +31,4 b' def includeme(config):'
31 31 pattern='/{repo_name:.*?[^/]}/search', repo_route=True)
32 32
33 33 # Scan module for configuration decorators.
34 config.scan()
35
36
37 # # FULL TEXT SEARCH
38 # rmap.connect('search', '%s/search' % (ADMIN_PREFIX,),
39 # controller='search')
40 # rmap.connect('search_repo_home', '/{repo_name}/search',
41 # controller='search',
42 # action='index',
43 # conditions={'function': check_repo},
44 # requirements=URL_NAME_REQUIREMENTS) No newline at end of file
34 config.scan('.views', ignore='.tests')
@@ -25,4 +25,4 b' def includeme(config):'
25 25 pattern='/_profiles/{username}')
26 26
27 27 # Scan module for configuration decorators.
28 config.scan()
28 config.scan('.views', ignore='.tests')
General Comments 0
You need to be logged in to leave comments. Login now