Show More
@@ -0,0 +1,85 b'' | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | """ | |||
|
3 | rhodecode.lib.paster_commands.cache_keys | |||
|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
|
5 | ||||
|
6 | cleanup-keys paster command for RhodeCode | |||
|
7 | ||||
|
8 | ||||
|
9 | :created_on: mar 27, 2013 | |||
|
10 | :author: marcink | |||
|
11 | :copyright: (C) 2010-2013 Marcin Kuzminski <marcin@python-works.com> | |||
|
12 | :license: GPLv3, see COPYING for more details. | |||
|
13 | """ | |||
|
14 | # This program is free software: you can redistribute it and/or modify | |||
|
15 | # it under the terms of the GNU General Public License as published by | |||
|
16 | # the Free Software Foundation, either version 3 of the License, or | |||
|
17 | # (at your option) any later version. | |||
|
18 | # | |||
|
19 | # This program is distributed in the hope that it will be useful, | |||
|
20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
22 | # GNU General Public License for more details. | |||
|
23 | # | |||
|
24 | # You should have received a copy of the GNU General Public License | |||
|
25 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
|
26 | from __future__ import with_statement | |||
|
27 | ||||
|
28 | import os | |||
|
29 | import sys | |||
|
30 | import logging | |||
|
31 | ||||
|
32 | from os.path import dirname as dn, join as jn | |||
|
33 | from rhodecode.model.meta import Session | |||
|
34 | #to get the rhodecode import | |||
|
35 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |||
|
36 | sys.path.append(rc_path) | |||
|
37 | from rhodecode.lib.utils import BasePasterCommand | |||
|
38 | ||||
|
39 | from rhodecode.model.db import CacheInvalidation | |||
|
40 | ||||
|
41 | ||||
|
42 | log = logging.getLogger(__name__) | |||
|
43 | ||||
|
44 | ||||
|
45 | class Command(BasePasterCommand): | |||
|
46 | ||||
|
47 | max_args = 1 | |||
|
48 | min_args = 1 | |||
|
49 | ||||
|
50 | usage = "CONFIG_FILE" | |||
|
51 | group_name = "RhodeCode" | |||
|
52 | takes_config_file = -1 | |||
|
53 | parser = BasePasterCommand.standard_parser(verbose=True) | |||
|
54 | summary = "Cache keys utils" | |||
|
55 | ||||
|
56 | def command(self): | |||
|
57 | #get SqlAlchemy session | |||
|
58 | self._init_session() | |||
|
59 | _caches = CacheInvalidation.query().order_by(CacheInvalidation.cache_key).all() | |||
|
60 | if self.options.show: | |||
|
61 | for c_obj in _caches: | |||
|
62 | print 'key:%s active:%s' % (c_obj.cache_key, c_obj.cache_active) | |||
|
63 | elif self.options.cleanup: | |||
|
64 | for c_obj in _caches: | |||
|
65 | Session().delete(c_obj) | |||
|
66 | print 'removing key:%s' % (c_obj.cache_key) | |||
|
67 | Session().commit() | |||
|
68 | else: | |||
|
69 | print 'nothing done exiting...' | |||
|
70 | sys.exit(0) | |||
|
71 | ||||
|
72 | def update_parser(self): | |||
|
73 | self.parser.add_option( | |||
|
74 | '--show', | |||
|
75 | action='store_true', | |||
|
76 | dest='show', | |||
|
77 | help=("show existing cache keys with together with status") | |||
|
78 | ) | |||
|
79 | ||||
|
80 | self.parser.add_option( | |||
|
81 | '--cleanup', | |||
|
82 | action="store_true", | |||
|
83 | dest="cleanup", | |||
|
84 | help="cleanup existing cache keys" | |||
|
85 | ) |
@@ -1,341 +1,341 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="root.html"/> |
|
2 | <%inherit file="root.html"/> | |
3 |
|
3 | |||
4 | <!-- HEADER --> |
|
4 | <!-- HEADER --> | |
5 | <div id="header-dd"></div> |
|
5 | <div id="header-dd"></div> | |
6 | <div id="header"> |
|
6 | <div id="header"> | |
7 | <div id="header-inner" class="title"> |
|
7 | <div id="header-inner" class="title"> | |
8 | <div id="logo"> |
|
8 | <div id="logo"> | |
9 | <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1> |
|
9 | <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1> | |
10 | </div> |
|
10 | </div> | |
11 | <!-- MENU --> |
|
11 | <!-- MENU --> | |
12 | ${self.page_nav()} |
|
12 | ${self.page_nav()} | |
13 | <!-- END MENU --> |
|
13 | <!-- END MENU --> | |
14 | ${self.body()} |
|
14 | ${self.body()} | |
15 | </div> |
|
15 | </div> | |
16 | </div> |
|
16 | </div> | |
17 | <!-- END HEADER --> |
|
17 | <!-- END HEADER --> | |
18 |
|
18 | |||
19 | <!-- CONTENT --> |
|
19 | <!-- CONTENT --> | |
20 | <div id="content"> |
|
20 | <div id="content"> | |
21 | <div class="flash_msg"> |
|
21 | <div class="flash_msg"> | |
22 | <% messages = h.flash.pop_messages() %> |
|
22 | <% messages = h.flash.pop_messages() %> | |
23 | % if messages: |
|
23 | % if messages: | |
24 | <ul id="flash-messages"> |
|
24 | <ul id="flash-messages"> | |
25 | % for message in messages: |
|
25 | % for message in messages: | |
26 | <li class="${message.category}_msg">${message}</li> |
|
26 | <li class="${message.category}_msg">${message}</li> | |
27 | % endfor |
|
27 | % endfor | |
28 | </ul> |
|
28 | </ul> | |
29 | % endif |
|
29 | % endif | |
30 | </div> |
|
30 | </div> | |
31 | <div id="main"> |
|
31 | <div id="main"> | |
32 | ${next.main()} |
|
32 | ${next.main()} | |
33 | </div> |
|
33 | </div> | |
34 | </div> |
|
34 | </div> | |
35 | <!-- END CONTENT --> |
|
35 | <!-- END CONTENT --> | |
36 |
|
36 | |||
37 | <!-- FOOTER --> |
|
37 | <!-- FOOTER --> | |
38 | <div id="footer"> |
|
38 | <div id="footer"> | |
39 | <div id="footer-inner" class="title"> |
|
39 | <div id="footer-inner" class="title"> | |
40 | <div> |
|
40 | <div> | |
41 | <p class="footer-link"> |
|
41 | <p class="footer-link"> | |
42 | <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> |
|
42 | <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> | |
43 | </p> |
|
43 | </p> | |
44 | <p class="footer-link-right"> |
|
44 | <p class="footer-link-right"> | |
45 | <a href="${h.url('rhodecode_official')}">RhodeCode${'-%s' % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}</a> |
|
45 | <a href="${h.url('rhodecode_official')}">RhodeCode${'-%s' % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}</a> | |
46 | ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski |
|
46 | ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski | |
47 | </p> |
|
47 | </p> | |
48 | </div> |
|
48 | </div> | |
49 | </div> |
|
49 | </div> | |
50 | </div> |
|
50 | </div> | |
51 | <!-- END FOOTER --> |
|
51 | <!-- END FOOTER --> | |
52 |
|
52 | |||
53 | ### MAKO DEFS ### |
|
53 | ### MAKO DEFS ### | |
54 | <%def name="breadcrumbs()"> |
|
54 | <%def name="breadcrumbs()"> | |
55 | <div class="breadcrumbs"> |
|
55 | <div class="breadcrumbs"> | |
56 | ${self.breadcrumbs_links()} |
|
56 | ${self.breadcrumbs_links()} | |
57 | </div> |
|
57 | </div> | |
58 | </%def> |
|
58 | </%def> | |
59 |
|
59 | |||
60 | <%def name="context_bar(current)"> |
|
60 | <%def name="context_bar(current)"> | |
61 | ${repo_context_bar(current)} |
|
61 | ${repo_context_bar(current)} | |
62 | </%def> |
|
62 | </%def> | |
63 |
|
63 | |||
64 | <%def name="admin_menu()"> |
|
64 | <%def name="admin_menu()"> | |
65 | <ul class="admin_menu"> |
|
65 | <ul class="admin_menu"> | |
66 | <li>${h.link_to(_('admin journal'),h.url('admin_home'),class_='journal ')}</li> |
|
66 | <li>${h.link_to(_('admin journal'),h.url('admin_home'),class_='journal ')}</li> | |
67 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
|
67 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> | |
68 | <li>${h.link_to(_('repository groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
|
68 | <li>${h.link_to(_('repository groups'),h.url('repos_groups'),class_='repos_groups')}</li> | |
69 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
|
69 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> | |
70 | <li>${h.link_to(_('user groups'),h.url('users_groups'),class_='groups')}</li> |
|
70 | <li>${h.link_to(_('user groups'),h.url('users_groups'),class_='groups')}</li> | |
71 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
|
71 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> | |
72 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
|
72 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> | |
73 | <li>${h.link_to(_('defaults'),h.url('defaults'),class_='defaults')}</li> |
|
73 | <li>${h.link_to(_('defaults'),h.url('defaults'),class_='defaults')}</li> | |
74 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
|
74 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> | |
75 | </ul> |
|
75 | </ul> | |
76 | </%def> |
|
76 | </%def> | |
77 |
|
77 | |||
78 | <%def name="admin_menu_simple()"> |
|
78 | <%def name="admin_menu_simple()"> | |
79 | <ul> |
|
79 | <ul> | |
80 | <li>${h.link_to(_('repository groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
|
80 | <li>${h.link_to(_('repository groups'),h.url('repos_groups'),class_='repos_groups')}</li> | |
81 | </ul> |
|
81 | </ul> | |
82 | </%def> |
|
82 | </%def> | |
83 |
|
83 | |||
84 | <%def name="repo_context_bar(current=None)"> |
|
84 | <%def name="repo_context_bar(current=None)"> | |
85 | <% |
|
85 | <% | |
86 | def follow_class(): |
|
86 | def follow_class(): | |
87 | if c.repository_following: |
|
87 | if c.repository_following: | |
88 | return h.literal('following') |
|
88 | return h.literal('following') | |
89 | else: |
|
89 | else: | |
90 | return h.literal('follow') |
|
90 | return h.literal('follow') | |
91 | %> |
|
91 | %> | |
92 | <% |
|
92 | <% | |
93 | def is_current(selected): |
|
93 | def is_current(selected): | |
94 | if selected == current: |
|
94 | if selected == current: | |
95 | return h.literal('class="current"') |
|
95 | return h.literal('class="current"') | |
96 | %> |
|
96 | %> | |
97 |
|
97 | |||
98 | <!--- CONTEXT BAR --> |
|
98 | <!--- CONTEXT BAR --> | |
99 | <div id="context-bar" class="box"> |
|
99 | <div id="context-bar" class="box"> | |
100 | <div id="breadcrumbs"> |
|
100 | <div id="breadcrumbs"> | |
101 | ${h.link_to(_(u'Repositories'),h.url('home'))} |
|
101 | ${h.link_to(_(u'Repositories'),h.url('home'))} | |
102 | » |
|
102 | » | |
103 | ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)} |
|
103 | ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)} | |
104 | </div> |
|
104 | </div> | |
105 | <ul id="context-pages" class="horizontal-list"> |
|
105 | <ul id="context-pages" class="horizontal-list"> | |
106 | <li ${is_current('summary')}><a href="${h.url('summary_home', repo_name=c.repo_name)}" class="summary">${_('Summary')}</a></li> |
|
106 | <li ${is_current('summary')}><a href="${h.url('summary_home', repo_name=c.repo_name)}" class="summary">${_('Summary')}</a></li> | |
107 | <li ${is_current('changelog')}><a href="${h.url('changelog_home', repo_name=c.repo_name)}" class="changelogs">${_('Changelog')}</a></li> |
|
107 | <li ${is_current('changelog')}><a href="${h.url('changelog_home', repo_name=c.repo_name)}" class="changelogs">${_('Changelog')}</a></li> | |
108 | <li ${is_current('files')}><a href="${h.url('files_home', repo_name=c.repo_name)}" class="files"></span>${_('Files')}</a></li> |
|
108 | <li ${is_current('files')}><a href="${h.url('files_home', repo_name=c.repo_name)}" class="files"></span>${_('Files')}</a></li> | |
109 | <li ${is_current('switch-to')}> |
|
109 | <li ${is_current('switch-to')}> | |
110 | <a href="#" id="branch_tag_switcher_2" class="dropdown switch-to"></span>${_('Switch To')}</a> |
|
110 | <a href="#" id="branch_tag_switcher_2" class="dropdown switch-to"></span>${_('Switch To')}</a> | |
111 | <ul id="switch_to_list_2" class="switch_to submenu"> |
|
111 | <ul id="switch_to_list_2" class="switch_to submenu"> | |
112 | <li><a href="#">${_('loading...')}</a></li> |
|
112 | <li><a href="#">${_('loading...')}</a></li> | |
113 | </ul> |
|
113 | </ul> | |
114 | </li> |
|
114 | </li> | |
115 | <li ${is_current('options')}> |
|
115 | <li ${is_current('options')}> | |
116 | <a href="#" class="dropdown options"></span>${_('Options')}</a> |
|
116 | <a href="#" class="dropdown options"></span>${_('Options')}</a> | |
117 | <ul> |
|
117 | <ul> | |
118 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
|
118 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): | |
119 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
|
119 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): | |
120 | <li>${h.link_to(_('Settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
|
120 | <li>${h.link_to(_('Settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> | |
121 | %else: |
|
121 | %else: | |
122 | <li>${h.link_to(_('Settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
|
122 | <li>${h.link_to(_('Settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> | |
123 | %endif |
|
123 | %endif | |
124 | %endif |
|
124 | %endif | |
125 | %if c.rhodecode_db_repo.fork: |
|
125 | %if c.rhodecode_db_repo.fork: | |
126 | <li>${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default', merge=1),class_='compare_request')}</li> |
|
126 | <li>${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default', merge=1),class_='compare_request')}</li> | |
127 | %endif |
|
127 | %endif | |
128 | <li>${h.link_to(_('Lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}</li> |
|
128 | <li>${h.link_to(_('Lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}</li> | |
129 | <li>${h.link_to(_('Search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li> |
|
129 | <li>${h.link_to(_('Search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li> | |
130 |
|
130 | |||
131 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: |
|
131 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: | |
132 | %if c.rhodecode_db_repo.locked[0]: |
|
132 | %if c.rhodecode_db_repo.locked[0]: | |
133 | <li>${h.link_to(_('Unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> |
|
133 | <li>${h.link_to(_('Unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> | |
134 | %else: |
|
134 | %else: | |
135 | <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> |
|
135 | <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> | |
136 | %endif |
|
136 | %endif | |
137 | %endif |
|
137 | %endif | |
138 |
|
|
138 | ## TODO: this check feels wrong, it would be better to have a check for permissions | |
139 |
|
|
139 | ## also it feels like a job for the controller | |
140 |
|
|
140 | %if c.rhodecode_user.username != 'default': | |
141 |
|
|
141 | <li> | |
142 |
|
|
142 | <a class="${follow_class()}" onclick="javascript:toggleFollowingRepo(this,${c.rhodecode_db_repo.repo_id},'${str(h.get_token())}');"> | |
143 |
|
|
143 | <span class="show-follow">${_('Follow')}</span> | |
144 |
|
|
144 | <span class="show-following">${_('Unfollow')}</span> | |
145 |
|
|
145 | </a> | |
146 |
|
|
146 | </li> | |
147 |
|
|
147 | <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}" class="fork">${_('Fork')}</a></li> | |
148 |
|
|
148 | %if h.is_hg(c.rhodecode_repo): | |
149 |
|
|
149 | <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="pull-request">${_('Create Pull Request')}</a></li> | |
150 |
|
|
150 | %endif | |
151 |
|
|
151 | %endif | |
152 | </ul> |
|
152 | </ul> | |
153 | </li> |
|
153 | </li> | |
154 | <li ${is_current('showpullrequest')}> |
|
154 | <li ${is_current('showpullrequest')}> | |
155 | <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests')}" class="pull-request">${_('Pull Requests')} |
|
155 | <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests')}" class="pull-request">${_('Pull Requests')} | |
156 | %if c.repository_pull_requests: |
|
156 | %if c.repository_pull_requests: | |
157 | <span>${c.repository_pull_requests}</span> |
|
157 | <span>${c.repository_pull_requests}</span> | |
158 | %endif |
|
158 | %endif | |
159 | </a> |
|
159 | </a> | |
160 | </li> |
|
160 | </li> | |
161 | </ul> |
|
161 | </ul> | |
162 | </div> |
|
162 | </div> | |
163 | <script type="text/javascript"> |
|
163 | <script type="text/javascript"> | |
164 | YUE.on('branch_tag_switcher_2','mouseover',function(){ |
|
164 | YUE.on('branch_tag_switcher_2','mouseover',function(){ | |
165 | var loaded = YUD.hasClass('branch_tag_switcher_2','loaded'); |
|
165 | var loaded = YUD.hasClass('branch_tag_switcher_2','loaded'); | |
166 | if(!loaded){ |
|
166 | if(!loaded){ | |
167 | YUD.addClass('branch_tag_switcher_2','loaded'); |
|
167 | YUD.addClass('branch_tag_switcher_2','loaded'); | |
168 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list_2', |
|
168 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list_2', | |
169 | function(o){}, |
|
169 | function(o){}, | |
170 | function(o){YUD.removeClass('branch_tag_switcher_2','loaded');} |
|
170 | function(o){YUD.removeClass('branch_tag_switcher_2','loaded');} | |
171 | ,null); |
|
171 | ,null); | |
172 | } |
|
172 | } | |
173 | return false; |
|
173 | return false; | |
174 | }); |
|
174 | }); | |
175 | </script> |
|
175 | </script> | |
176 | <!--- END CONTEXT BAR --> |
|
176 | <!--- END CONTEXT BAR --> | |
177 | </%def> |
|
177 | </%def> | |
178 |
|
178 | |||
179 | <%def name="usermenu()"> |
|
179 | <%def name="usermenu()"> | |
180 | ## USER MENU |
|
180 | ## USER MENU | |
181 | <li> |
|
181 | <li> | |
182 | <a class="menu_link childs" id="quick_login_link"> |
|
182 | <a class="menu_link childs" id="quick_login_link"> | |
183 | <span class="icon"> |
|
183 | <span class="icon"> | |
184 | <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar"> |
|
184 | <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar"> | |
185 | </span> |
|
185 | </span> | |
186 | %if c.rhodecode_user.username != 'default': |
|
186 | %if c.rhodecode_user.username != 'default': | |
187 | <span class="menu_link_user">${c.rhodecode_user.username}</span> |
|
187 | <span class="menu_link_user">${c.rhodecode_user.username}</span> | |
188 | %if c.unread_notifications != 0: |
|
188 | %if c.unread_notifications != 0: | |
189 | <span class="menu_link_notifications">${c.unread_notifications}</span> |
|
189 | <span class="menu_link_notifications">${c.unread_notifications}</span> | |
190 | %endif |
|
190 | %endif | |
191 | %else: |
|
191 | %else: | |
192 | <span>${_('Not logged in')}</span> |
|
192 | <span>${_('Not logged in')}</span> | |
193 | %endif |
|
193 | %endif | |
194 | </a> |
|
194 | </a> | |
195 |
|
195 | |||
196 | <div class="user-menu"> |
|
196 | <div class="user-menu"> | |
197 | <div id="quick_login"> |
|
197 | <div id="quick_login"> | |
198 | %if c.rhodecode_user.username == 'default': |
|
198 | %if c.rhodecode_user.username == 'default': | |
199 | <h4>${_('Login to your account')}</h4> |
|
199 | <h4>${_('Login to your account')}</h4> | |
200 | ${h.form(h.url('login_home',came_from=h.url.current()))} |
|
200 | ${h.form(h.url('login_home',came_from=h.url.current()))} | |
201 | <div class="form"> |
|
201 | <div class="form"> | |
202 | <div class="fields"> |
|
202 | <div class="fields"> | |
203 | <div class="field"> |
|
203 | <div class="field"> | |
204 | <div class="label"> |
|
204 | <div class="label"> | |
205 | <label for="username">${_('Username')}:</label> |
|
205 | <label for="username">${_('Username')}:</label> | |
206 | </div> |
|
206 | </div> | |
207 | <div class="input"> |
|
207 | <div class="input"> | |
208 | ${h.text('username',class_='focus')} |
|
208 | ${h.text('username',class_='focus')} | |
209 | </div> |
|
209 | </div> | |
210 |
|
210 | |||
211 | </div> |
|
211 | </div> | |
212 | <div class="field"> |
|
212 | <div class="field"> | |
213 | <div class="label"> |
|
213 | <div class="label"> | |
214 | <label for="password">${_('Password')}:</label> |
|
214 | <label for="password">${_('Password')}:</label> | |
215 | </div> |
|
215 | </div> | |
216 | <div class="input"> |
|
216 | <div class="input"> | |
217 | ${h.password('password',class_='focus')} |
|
217 | ${h.password('password',class_='focus')} | |
218 | </div> |
|
218 | </div> | |
219 |
|
219 | |||
220 | </div> |
|
220 | </div> | |
221 | <div class="buttons"> |
|
221 | <div class="buttons"> | |
222 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
|
222 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> | |
223 | <div class="register"> |
|
223 | <div class="register"> | |
224 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
|
224 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | |
225 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
|
225 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} | |
226 | %endif |
|
226 | %endif | |
227 | </div> |
|
227 | </div> | |
228 | <div class="submit"> |
|
228 | <div class="submit"> | |
229 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} |
|
229 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} | |
230 | </div> |
|
230 | </div> | |
231 | </div> |
|
231 | </div> | |
232 | </div> |
|
232 | </div> | |
233 | </div> |
|
233 | </div> | |
234 | ${h.end_form()} |
|
234 | ${h.end_form()} | |
235 | %else: |
|
235 | %else: | |
236 | <div class="links_left"> |
|
236 | <div class="links_left"> | |
237 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> |
|
237 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> | |
238 | <div class="email">${c.rhodecode_user.email}</div> |
|
238 | <div class="email">${c.rhodecode_user.email}</div> | |
239 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> |
|
239 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> | |
240 | ##<div class="notifications"><a href="${h.url('notifications')}">${_('Notifications')}</a></div> |
|
240 | ##<div class="notifications"><a href="${h.url('notifications')}">${_('Notifications')}</a></div> | |
241 | <div class="unread"><a href="${h.url('notifications')}">${_('Unread notifications')}: ${c.unread_notifications}</a></div> |
|
241 | <div class="unread"><a href="${h.url('notifications')}">${_('Unread notifications')}: ${c.unread_notifications}</a></div> | |
242 | </div> |
|
242 | </div> | |
243 | <div class="links_right"> |
|
243 | <div class="links_right"> | |
244 | <ol class="links"> |
|
244 | <ol class="links"> | |
245 | ##<li>${h.link_to(_(u'Home'),h.url('home'))}</li> |
|
245 | ##<li>${h.link_to(_(u'Home'),h.url('home'))}</li> | |
246 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> |
|
246 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> | |
247 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> |
|
247 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> | |
248 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> |
|
248 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> | |
249 | </ol> |
|
249 | </ol> | |
250 | </div> |
|
250 | </div> | |
251 | %endif |
|
251 | %endif | |
252 | </div> |
|
252 | </div> | |
253 | </div> |
|
253 | </div> | |
254 |
|
254 | |||
255 | </li> |
|
255 | </li> | |
256 | </%def> |
|
256 | </%def> | |
257 |
|
257 | |||
258 | <%def name="menu(current=None)"> |
|
258 | <%def name="menu(current=None)"> | |
259 | <% |
|
259 | <% | |
260 | def is_current(selected): |
|
260 | def is_current(selected): | |
261 | if selected == current: |
|
261 | if selected == current: | |
262 | return h.literal('class="current"') |
|
262 | return h.literal('class="current"') | |
263 | %> |
|
263 | %> | |
264 | <ul id="quick" class="horizontal-list"> |
|
264 | <ul id="quick" class="horizontal-list"> | |
265 | <!-- repo switcher --> |
|
265 | <!-- repo switcher --> | |
266 | <li ${is_current('repositories')}> |
|
266 | <li ${is_current('repositories')}> | |
267 | <a class="menu_link repo_switcher childs" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}"> |
|
267 | <a class="menu_link repo_switcher childs" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}"> | |
268 | ${_('Repositories')} |
|
268 | ${_('Repositories')} | |
269 | </a> |
|
269 | </a> | |
270 | <ul id="repo_switcher_list" class="repo_switcher"> |
|
270 | <ul id="repo_switcher_list" class="repo_switcher"> | |
271 | <li> |
|
271 | <li> | |
272 | <a href="#">${_('loading...')}</a> |
|
272 | <a href="#">${_('loading...')}</a> | |
273 | </li> |
|
273 | </li> | |
274 | </ul> |
|
274 | </ul> | |
275 | </li> |
|
275 | </li> | |
276 | ##ROOT MENU |
|
276 | ##ROOT MENU | |
277 | %if c.rhodecode_user.username != 'default': |
|
277 | %if c.rhodecode_user.username != 'default': | |
278 | <li ${is_current('journal')}> |
|
278 | <li ${is_current('journal')}> | |
279 | <a class="menu_link journal" title="${_('Show recent activity')}" href="${h.url('journal')}"> |
|
279 | <a class="menu_link journal" title="${_('Show recent activity')}" href="${h.url('journal')}"> | |
280 | ${_('Journal')} |
|
280 | ${_('Journal')} | |
281 | </a> |
|
281 | </a> | |
282 | </li> |
|
282 | </li> | |
283 | %else: |
|
283 | %else: | |
284 | <li ${is_current('journal')}> |
|
284 | <li ${is_current('journal')}> | |
285 | <a class="menu_link journal" title="${_('Public journal')}" href="${h.url('public_journal')}"> |
|
285 | <a class="menu_link journal" title="${_('Public journal')}" href="${h.url('public_journal')}"> | |
286 | ${_('Public journal')} |
|
286 | ${_('Public journal')} | |
287 | </a> |
|
287 | </a> | |
288 | </li> |
|
288 | </li> | |
289 | %endif |
|
289 | %endif | |
290 | <li ${is_current('search')}> |
|
290 | <li ${is_current('search')}> | |
291 | <a class="menu_link search" title="${_('Search in repositories')}" href="${h.url('search')}"> |
|
291 | <a class="menu_link search" title="${_('Search in repositories')}" href="${h.url('search')}"> | |
292 | ${_('Search')} |
|
292 | ${_('Search')} | |
293 | </a> |
|
293 | </a> | |
294 | </li> |
|
294 | </li> | |
295 | % if h.HasPermissionAll('hg.admin')('access admin main page'): |
|
295 | % if h.HasPermissionAll('hg.admin')('access admin main page'): | |
296 | <li ${is_current('admin')}> |
|
296 | <li ${is_current('admin')}> | |
297 | <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}"> |
|
297 | <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}"> | |
298 | ${_('Admin')} |
|
298 | ${_('Admin')} | |
299 | </a> |
|
299 | </a> | |
300 | ${admin_menu()} |
|
300 | ${admin_menu()} | |
301 | </li> |
|
301 | </li> | |
302 | % elif c.rhodecode_user.groups_admin: |
|
302 | % elif c.rhodecode_user.groups_admin: | |
303 | <li ${is_current('admin')}> |
|
303 | <li ${is_current('admin')}> | |
304 | <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}"> |
|
304 | <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}"> | |
305 | ${_('Admin')} |
|
305 | ${_('Admin')} | |
306 | </a> |
|
306 | </a> | |
307 | ${admin_menu_simple()} |
|
307 | ${admin_menu_simple()} | |
308 | </li> |
|
308 | </li> | |
309 | % endif |
|
309 | % endif | |
310 | ${usermenu()} |
|
310 | ${usermenu()} | |
311 | <script type="text/javascript"> |
|
311 | <script type="text/javascript"> | |
312 | YUE.on('repo_switcher','mouseover',function(){ |
|
312 | YUE.on('repo_switcher','mouseover',function(){ | |
313 | var target = 'q_filter_rs'; |
|
313 | var target = 'q_filter_rs'; | |
314 | var qfilter_activate = function(){ |
|
314 | var qfilter_activate = function(){ | |
315 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); |
|
315 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
316 | var func = function(node){ |
|
316 | var func = function(node){ | |
317 | return node.parentNode; |
|
317 | return node.parentNode; | |
318 | } |
|
318 | } | |
319 | q_filter(target,nodes,func); |
|
319 | q_filter(target,nodes,func); | |
320 | } |
|
320 | } | |
321 |
|
321 | |||
322 | var loaded = YUD.hasClass('repo_switcher','loaded'); |
|
322 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
323 | if(!loaded){ |
|
323 | if(!loaded){ | |
324 | YUD.addClass('repo_switcher','loaded'); |
|
324 | YUD.addClass('repo_switcher','loaded'); | |
325 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
|
325 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
326 | function(o){qfilter_activate();YUD.get(target).focus()}, |
|
326 | function(o){qfilter_activate();YUD.get(target).focus()}, | |
327 | function(o){YUD.removeClass('repo_switcher','loaded');} |
|
327 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
328 | ,null); |
|
328 | ,null); | |
329 | }else{ |
|
329 | }else{ | |
330 | YUD.get(target).focus(); |
|
330 | YUD.get(target).focus(); | |
331 | } |
|
331 | } | |
332 | return false; |
|
332 | return false; | |
333 | }); |
|
333 | }); | |
334 |
|
334 | |||
335 | YUE.on('header-dd', 'click',function(e){ |
|
335 | YUE.on('header-dd', 'click',function(e){ | |
336 | YUD.addClass('header-inner', 'hover'); |
|
336 | YUD.addClass('header-inner', 'hover'); | |
337 | YUD.addClass('content', 'hover'); |
|
337 | YUD.addClass('content', 'hover'); | |
338 | }); |
|
338 | }); | |
339 |
|
339 | |||
340 | </script> |
|
340 | </script> | |
341 | </%def> |
|
341 | </%def> |
@@ -1,171 +1,172 b'' | |||||
1 | import os |
|
1 | import os | |
2 | import sys |
|
2 | import sys | |
3 | import platform |
|
3 | import platform | |
4 |
|
4 | |||
5 | if sys.version_info < (2, 5): |
|
5 | if sys.version_info < (2, 5): | |
6 | raise Exception('RhodeCode requires python 2.5 or later') |
|
6 | raise Exception('RhodeCode requires python 2.5 or later') | |
7 |
|
7 | |||
8 |
|
8 | |||
9 | here = os.path.abspath(os.path.dirname(__file__)) |
|
9 | here = os.path.abspath(os.path.dirname(__file__)) | |
10 |
|
10 | |||
11 |
|
11 | |||
12 | def _get_meta_var(name, data, callback_handler=None): |
|
12 | def _get_meta_var(name, data, callback_handler=None): | |
13 | import re |
|
13 | import re | |
14 | matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data) |
|
14 | matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data) | |
15 | if matches: |
|
15 | if matches: | |
16 | if not callable(callback_handler): |
|
16 | if not callable(callback_handler): | |
17 | callback_handler = lambda v: v |
|
17 | callback_handler = lambda v: v | |
18 |
|
18 | |||
19 | return callback_handler(eval(matches.groups()[0])) |
|
19 | return callback_handler(eval(matches.groups()[0])) | |
20 |
|
20 | |||
21 | _meta = open(os.path.join(here, 'rhodecode', '__init__.py'), 'rb') |
|
21 | _meta = open(os.path.join(here, 'rhodecode', '__init__.py'), 'rb') | |
22 | _metadata = _meta.read() |
|
22 | _metadata = _meta.read() | |
23 | _meta.close() |
|
23 | _meta.close() | |
24 |
|
24 | |||
25 | callback = lambda V: ('.'.join(map(str, V[:3])) + '.'.join(V[3:])) |
|
25 | callback = lambda V: ('.'.join(map(str, V[:3])) + '.'.join(V[3:])) | |
26 | __version__ = _get_meta_var('VERSION', _metadata, callback) |
|
26 | __version__ = _get_meta_var('VERSION', _metadata, callback) | |
27 | __license__ = _get_meta_var('__license__', _metadata) |
|
27 | __license__ = _get_meta_var('__license__', _metadata) | |
28 | __author__ = _get_meta_var('__author__', _metadata) |
|
28 | __author__ = _get_meta_var('__author__', _metadata) | |
29 | __url__ = _get_meta_var('__url__', _metadata) |
|
29 | __url__ = _get_meta_var('__url__', _metadata) | |
30 | # defines current platform |
|
30 | # defines current platform | |
31 | __platform__ = platform.system() |
|
31 | __platform__ = platform.system() | |
32 |
|
32 | |||
33 | is_windows = __platform__ in _get_meta_var('PLATFORM_WIN', _metadata) |
|
33 | is_windows = __platform__ in _get_meta_var('PLATFORM_WIN', _metadata) | |
34 |
|
34 | |||
35 | requirements = [ |
|
35 | requirements = [ | |
36 | "waitress==0.8.2", |
|
36 | "waitress==0.8.2", | |
37 | "webob==1.0.8", |
|
37 | "webob==1.0.8", | |
38 | "webtest==1.4.3", |
|
38 | "webtest==1.4.3", | |
39 | "Pylons==1.0.0", |
|
39 | "Pylons==1.0.0", | |
40 | "Beaker==1.6.4", |
|
40 | "Beaker==1.6.4", | |
41 | "WebHelpers==1.3", |
|
41 | "WebHelpers==1.3", | |
42 | "formencode==1.2.4", |
|
42 | "formencode==1.2.4", | |
43 | "SQLAlchemy==0.7.10", |
|
43 | "SQLAlchemy==0.7.10", | |
44 | "Mako==0.7.3", |
|
44 | "Mako==0.7.3", | |
45 | "pygments>=1.5", |
|
45 | "pygments>=1.5", | |
46 | "whoosh>=2.4.0,<2.5", |
|
46 | "whoosh>=2.4.0,<2.5", | |
47 | "celery>=2.2.5,<2.3", |
|
47 | "celery>=2.2.5,<2.3", | |
48 | "babel", |
|
48 | "babel", | |
49 | "python-dateutil>=1.5.0,<2.0.0", |
|
49 | "python-dateutil>=1.5.0,<2.0.0", | |
50 | "dulwich>=0.8.7,<0.9.0", |
|
50 | "dulwich>=0.8.7,<0.9.0", | |
51 | "markdown==2.2.1", |
|
51 | "markdown==2.2.1", | |
52 | "docutils==0.8.1", |
|
52 | "docutils==0.8.1", | |
53 | "simplejson==2.5.2", |
|
53 | "simplejson==2.5.2", | |
54 | "mock", |
|
54 | "mock", | |
55 | ] |
|
55 | ] | |
56 |
|
56 | |||
57 | if sys.version_info < (2, 6): |
|
57 | if sys.version_info < (2, 6): | |
58 | requirements.append("pysqlite") |
|
58 | requirements.append("pysqlite") | |
59 |
|
59 | |||
60 | if sys.version_info < (2, 7): |
|
60 | if sys.version_info < (2, 7): | |
61 | requirements.append("unittest2") |
|
61 | requirements.append("unittest2") | |
62 | requirements.append("argparse") |
|
62 | requirements.append("argparse") | |
63 |
|
63 | |||
64 | if is_windows: |
|
64 | if is_windows: | |
65 | requirements.append("mercurial==2.5.2") |
|
65 | requirements.append("mercurial==2.5.2") | |
66 | else: |
|
66 | else: | |
67 | requirements.append("py-bcrypt") |
|
67 | requirements.append("py-bcrypt") | |
68 | requirements.append("mercurial==2.5.2") |
|
68 | requirements.append("mercurial==2.5.2") | |
69 |
|
69 | |||
70 |
|
70 | |||
71 | dependency_links = [ |
|
71 | dependency_links = [ | |
72 | ] |
|
72 | ] | |
73 |
|
73 | |||
74 | classifiers = [ |
|
74 | classifiers = [ | |
75 | 'Development Status :: 4 - Beta', |
|
75 | 'Development Status :: 4 - Beta', | |
76 | 'Environment :: Web Environment', |
|
76 | 'Environment :: Web Environment', | |
77 | 'Framework :: Pylons', |
|
77 | 'Framework :: Pylons', | |
78 | 'Intended Audience :: Developers', |
|
78 | 'Intended Audience :: Developers', | |
79 | 'License :: OSI Approved :: GNU General Public License (GPL)', |
|
79 | 'License :: OSI Approved :: GNU General Public License (GPL)', | |
80 | 'Operating System :: OS Independent', |
|
80 | 'Operating System :: OS Independent', | |
81 | 'Programming Language :: Python', |
|
81 | 'Programming Language :: Python', | |
82 | 'Programming Language :: Python :: 2.5', |
|
82 | 'Programming Language :: Python :: 2.5', | |
83 | 'Programming Language :: Python :: 2.6', |
|
83 | 'Programming Language :: Python :: 2.6', | |
84 | 'Programming Language :: Python :: 2.7', |
|
84 | 'Programming Language :: Python :: 2.7', | |
85 | ] |
|
85 | ] | |
86 |
|
86 | |||
87 |
|
87 | |||
88 | # additional files from project that goes somewhere in the filesystem |
|
88 | # additional files from project that goes somewhere in the filesystem | |
89 | # relative to sys.prefix |
|
89 | # relative to sys.prefix | |
90 | data_files = [] |
|
90 | data_files = [] | |
91 |
|
91 | |||
92 | # additional files that goes into package itself |
|
92 | # additional files that goes into package itself | |
93 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } |
|
93 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } | |
94 |
|
94 | |||
95 | description = ('RhodeCode is a fast and powerful management tool ' |
|
95 | description = ('RhodeCode is a fast and powerful management tool ' | |
96 | 'for Mercurial and GIT with a built in push/pull server, ' |
|
96 | 'for Mercurial and GIT with a built in push/pull server, ' | |
97 | 'full text search and code-review.') |
|
97 | 'full text search and code-review.') | |
98 | keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', |
|
98 | keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git', | |
99 | 'code review', 'repo groups', 'ldap' |
|
99 | 'code review', 'repo groups', 'ldap' | |
100 | 'repository management', 'hgweb replacement' |
|
100 | 'repository management', 'hgweb replacement' | |
101 | 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) |
|
101 | 'hgwebdir', 'gitweb replacement', 'serving hgweb', ]) | |
102 | # long description |
|
102 | # long description | |
103 | try: |
|
103 | try: | |
104 | readme_file = 'README.rst' |
|
104 | readme_file = 'README.rst' | |
105 | changelog_file = 'docs/changelog.rst' |
|
105 | changelog_file = 'docs/changelog.rst' | |
106 | long_description = open(readme_file).read() + '\n\n' + \ |
|
106 | long_description = open(readme_file).read() + '\n\n' + \ | |
107 | open(changelog_file).read() |
|
107 | open(changelog_file).read() | |
108 |
|
108 | |||
109 | except IOError, err: |
|
109 | except IOError, err: | |
110 | sys.stderr.write("[WARNING] Cannot find file specified as " |
|
110 | sys.stderr.write("[WARNING] Cannot find file specified as " | |
111 | "long_description (%s)\n or changelog (%s) skipping that file" \ |
|
111 | "long_description (%s)\n or changelog (%s) skipping that file" \ | |
112 | % (readme_file, changelog_file)) |
|
112 | % (readme_file, changelog_file)) | |
113 | long_description = description |
|
113 | long_description = description | |
114 |
|
114 | |||
115 |
|
115 | |||
116 | try: |
|
116 | try: | |
117 | from setuptools import setup, find_packages |
|
117 | from setuptools import setup, find_packages | |
118 | except ImportError: |
|
118 | except ImportError: | |
119 | from ez_setup import use_setuptools |
|
119 | from ez_setup import use_setuptools | |
120 | use_setuptools() |
|
120 | use_setuptools() | |
121 | from setuptools import setup, find_packages |
|
121 | from setuptools import setup, find_packages | |
122 | # packages |
|
122 | # packages | |
123 | packages = find_packages(exclude=['ez_setup']) |
|
123 | packages = find_packages(exclude=['ez_setup']) | |
124 |
|
124 | |||
125 | setup( |
|
125 | setup( | |
126 | name='RhodeCode', |
|
126 | name='RhodeCode', | |
127 | version=__version__, |
|
127 | version=__version__, | |
128 | description=description, |
|
128 | description=description, | |
129 | long_description=long_description, |
|
129 | long_description=long_description, | |
130 | keywords=keywords, |
|
130 | keywords=keywords, | |
131 | license=__license__, |
|
131 | license=__license__, | |
132 | author=__author__, |
|
132 | author=__author__, | |
133 | author_email='marcin@python-works.com', |
|
133 | author_email='marcin@python-works.com', | |
134 | dependency_links=dependency_links, |
|
134 | dependency_links=dependency_links, | |
135 | url=__url__, |
|
135 | url=__url__, | |
136 | install_requires=requirements, |
|
136 | install_requires=requirements, | |
137 | classifiers=classifiers, |
|
137 | classifiers=classifiers, | |
138 | setup_requires=["PasteScript>=1.6.3"], |
|
138 | setup_requires=["PasteScript>=1.6.3"], | |
139 | data_files=data_files, |
|
139 | data_files=data_files, | |
140 | packages=packages, |
|
140 | packages=packages, | |
141 | include_package_data=True, |
|
141 | include_package_data=True, | |
142 | test_suite='nose.collector', |
|
142 | test_suite='nose.collector', | |
143 | package_data=package_data, |
|
143 | package_data=package_data, | |
144 | message_extractors={'rhodecode': [ |
|
144 | message_extractors={'rhodecode': [ | |
145 | ('**.py', 'python', None), |
|
145 | ('**.py', 'python', None), | |
146 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), |
|
146 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
147 | ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), |
|
147 | ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}), | |
148 | ('public/**', 'ignore', None)]}, |
|
148 | ('public/**', 'ignore', None)]}, | |
149 | zip_safe=False, |
|
149 | zip_safe=False, | |
150 | paster_plugins=['PasteScript', 'Pylons'], |
|
150 | paster_plugins=['PasteScript', 'Pylons'], | |
151 | entry_points=""" |
|
151 | entry_points=""" | |
152 | [console_scripts] |
|
152 | [console_scripts] | |
153 | rhodecode-api = rhodecode.bin.rhodecode_api:main |
|
153 | rhodecode-api = rhodecode.bin.rhodecode_api:main | |
154 |
|
154 | |||
155 | [paste.app_factory] |
|
155 | [paste.app_factory] | |
156 | main = rhodecode.config.middleware:make_app |
|
156 | main = rhodecode.config.middleware:make_app | |
157 |
|
157 | |||
158 | [paste.app_install] |
|
158 | [paste.app_install] | |
159 | main = pylons.util:PylonsInstaller |
|
159 | main = pylons.util:PylonsInstaller | |
160 |
|
160 | |||
161 | [paste.global_paster_command] |
|
161 | [paste.global_paster_command] | |
162 | setup-rhodecode=rhodecode.lib.paster_commands.setup_rhodecode:Command |
|
162 | setup-rhodecode=rhodecode.lib.paster_commands.setup_rhodecode:Command | |
163 | cleanup-repos=rhodecode.lib.paster_commands.cleanup:Command |
|
163 | cleanup-repos=rhodecode.lib.paster_commands.cleanup:Command | |
164 | update-repoinfo=rhodecode.lib.paster_commands.update_repoinfo:Command |
|
164 | update-repoinfo=rhodecode.lib.paster_commands.update_repoinfo:Command | |
165 | make-rcext=rhodecode.lib.paster_commands.make_rcextensions:Command |
|
165 | make-rcext=rhodecode.lib.paster_commands.make_rcextensions:Command | |
166 | repo-scan=rhodecode.lib.paster_commands.repo_scan:Command |
|
166 | repo-scan=rhodecode.lib.paster_commands.repo_scan:Command | |
|
167 | cache-keys=rhodecode.lib.paster_commands.cache_keys:Command | |||
167 | make-index=rhodecode.lib.indexers:MakeIndex |
|
168 | make-index=rhodecode.lib.indexers:MakeIndex | |
168 | upgrade-db=rhodecode.lib.dbmigrate:UpgradeDb |
|
169 | upgrade-db=rhodecode.lib.dbmigrate:UpgradeDb | |
169 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand |
|
170 | celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand | |
170 | """, |
|
171 | """, | |
171 | ) |
|
172 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now