##// END OF EJS Templates
bug: fixed docs not building by adding release notes to index
bug: fixed docs not building by adding release notes to index

File last commit:

r5436:51d760b9 default
r5588:8dd6cbfd default
Show More
__init__.py
1243 lines | 46.3 KiB | text/x-python | PythonLexer
copyrights: updated for 2023
r5088 # Copyright (C) 2016-2023 RhodeCode GmbH
repositories: enabled support for maintenance commands....
r1555 #
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3
# (only), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This program is dual-licensed. If you wish to learn more about the
# RhodeCode Enterprise Edition, including its added features, Support services,
# and proprietary license terms, please see https://rhodecode.com/licenses/
repo-summary: re-implemented summary view as pyramid....
r1785 from rhodecode.apps._base import add_route_with_slash
repositories: enabled support for maintenance commands....
r1555
def includeme(config):
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 from rhodecode.apps.repository.views.repo_artifacts import RepoArtifactsView
from rhodecode.apps.repository.views.repo_audit_logs import AuditLogsView
from rhodecode.apps.repository.views.repo_automation import RepoAutomationView
from rhodecode.apps.repository.views.repo_bookmarks import RepoBookmarksView
from rhodecode.apps.repository.views.repo_branch_permissions import RepoSettingsBranchPermissionsView
from rhodecode.apps.repository.views.repo_branches import RepoBranchesView
from rhodecode.apps.repository.views.repo_caches import RepoCachesView
from rhodecode.apps.repository.views.repo_changelog import RepoChangelogView
from rhodecode.apps.repository.views.repo_checks import RepoChecksView
from rhodecode.apps.repository.views.repo_commits import RepoCommitsView
from rhodecode.apps.repository.views.repo_compare import RepoCompareView
from rhodecode.apps.repository.views.repo_feed import RepoFeedView
from rhodecode.apps.repository.views.repo_files import RepoFilesView
from rhodecode.apps.repository.views.repo_forks import RepoForksView
from rhodecode.apps.repository.views.repo_maintainance import RepoMaintenanceView
from rhodecode.apps.repository.views.repo_permissions import RepoSettingsPermissionsView
from rhodecode.apps.repository.views.repo_pull_requests import RepoPullRequestsView
from rhodecode.apps.repository.views.repo_review_rules import RepoReviewRulesView
from rhodecode.apps.repository.views.repo_settings import RepoSettingsView
from rhodecode.apps.repository.views.repo_settings_advanced import RepoSettingsAdvancedView
from rhodecode.apps.repository.views.repo_settings_fields import RepoSettingsFieldsView
from rhodecode.apps.repository.views.repo_settings_issue_trackers import RepoSettingsIssueTrackersView
from rhodecode.apps.repository.views.repo_settings_remote import RepoSettingsRemoteView
from rhodecode.apps.repository.views.repo_settings_vcs import RepoSettingsVcsView
from rhodecode.apps.repository.views.repo_strip import RepoStripView
from rhodecode.apps.repository.views.repo_summary import RepoSummaryView
from rhodecode.apps.repository.views.repo_tags import RepoTagsView
repositories: enabled support for maintenance commands....
r1555
repositories: ported repo_creating checks to pyramid....
r1985 # repo creating checks, special cases that aren't repo routes
config.add_route(
name='repo_creating',
pattern='/{repo_name:.*?[^/]}/repo_creating')
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoChecksView,
attr='repo_creating',
route_name='repo_creating', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_creating.mako')
repositories: ported repo_creating checks to pyramid....
r1985
config.add_route(
name='repo_creating_check',
pattern='/{repo_name:.*?[^/]}/repo_creating_check')
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoChecksView,
attr='repo_creating_check',
route_name='repo_creating_check', request_method='GET',
renderer='json_ext')
repositories: ported repo_creating checks to pyramid....
r1985
repo-settings: moved advanced setion into pyramid views....
r1751 # Summary
repo-summary: re-implemented summary view as pyramid....
r1785 # NOTE(marcink): one additional route is defined in very bottom, catch
# all pattern
home: moved home and repo group views into pyramid....
r1774 config.add_route(
repo-settings: moved advanced setion into pyramid views....
r1751 name='repo_summary_explicit',
pattern='/{repo_name:.*?[^/]}/summary', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSummaryView,
attr='summary',
route_name='repo_summary_explicit', request_method='GET',
renderer='rhodecode:templates/summary/summary.mako')
repo-summary: re-implemented summary view as pyramid....
r1785 config.add_route(
name='repo_summary_commits',
pattern='/{repo_name:.*?[^/]}/summary-commits', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSummaryView,
attr='summary_commits',
route_name='repo_summary_commits', request_method='GET',
renderer='rhodecode:templates/summary/summary_commits.mako')
compare: migrated code from pylons to pyramid views.
r1957 # Commits
events: expose permalink urls for different set of object....
r1788 config.add_route(
name='repo_commit',
pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_show',
route_name='repo_commit', request_method='GET',
renderer=None)
events: expose permalink urls for different set of object....
r1788
repo-commits: ported changeset code into pyramid views....
r1951 config.add_route(
name='repo_commit_children',
pattern='/{repo_name:.*?[^/]}/changeset_children/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_children',
route_name='repo_commit_children', request_method='GET',
renderer='json_ext', xhr=True)
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_parents',
pattern='/{repo_name:.*?[^/]}/changeset_parents/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_parents',
route_name='repo_commit_parents', request_method='GET',
renderer='json_ext')
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_raw',
pattern='/{repo_name:.*?[^/]}/changeset-diff/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_raw',
route_name='repo_commit_raw', request_method='GET',
renderer=None)
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_patch',
pattern='/{repo_name:.*?[^/]}/changeset-patch/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_patch',
route_name='repo_commit_patch', request_method='GET',
renderer=None)
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_download',
pattern='/{repo_name:.*?[^/]}/changeset-download/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_download',
route_name='repo_commit_download', request_method='GET',
renderer=None)
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_data',
pattern='/{repo_name:.*?[^/]}/changeset-data/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_data',
route_name='repo_commit_data', request_method='GET',
renderer='json_ext', xhr=True)
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_comment_create',
pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/create', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_comment_create',
route_name='repo_commit_comment_create', request_method='POST',
renderer='json_ext')
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
name='repo_commit_comment_preview',
pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/preview', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_comment_preview',
route_name='repo_commit_comment_preview', request_method='POST',
renderer='string', xhr=True)
repo-commits: ported changeset code into pyramid views....
r1951
config.add_route(
comments: edit functionality added
r4401 name='repo_commit_comment_history_view',
comments-history: fixed fetching of history for comments
r4717 pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/{comment_id}/history_view/{comment_history_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_comment_history_view',
route_name='repo_commit_comment_history_view', request_method='POST',
renderer='string', xhr=True)
comments: edit functionality added
r4401
config.add_route(
comments: added support for adding comment attachments using the artifacts logic....
r3973 name='repo_commit_comment_attachment_upload',
pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/attachment_upload', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_comment_attachment_upload',
route_name='repo_commit_comment_attachment_upload', request_method='POST',
renderer='json_ext', xhr=True)
comments: added support for adding comment attachments using the artifacts logic....
r3973
config.add_route(
repo-commits: ported changeset code into pyramid views....
r1951 name='repo_commit_comment_delete',
pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/{comment_id}/delete', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_comment_delete',
route_name='repo_commit_comment_delete', request_method='POST',
renderer='json_ext')
repo-commits: ported changeset code into pyramid views....
r1951
comments: edit functionality added
r4401 config.add_route(
name='repo_commit_comment_edit',
pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/{comment_id}/edit', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_comment_edit',
route_name='repo_commit_comment_edit', request_method='POST',
renderer='json_ext')
comments: edit functionality added
r4401
compare: migrated code from pylons to pyramid views.
r1957 # still working url for backward compat.
config.add_route(
name='repo_commit_raw_deprecated',
pattern='/{repo_name:.*?[^/]}/raw-changeset/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCommitsView,
attr='repo_commit_raw',
route_name='repo_commit_raw_deprecated', request_method='GET',
renderer=None)
compare: migrated code from pylons to pyramid views.
r1957
# Files
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_archivefile',
archives: allows downloading refs that have slashes and special refs. e.g f/feat1 branch names.
r3698 pattern='/{repo_name:.*?[^/]}/archive/{fname:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_archivefile',
route_name='repo_archivefile', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_files_diff',
pattern='/{repo_name:.*?[^/]}/diff/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_diff',
route_name='repo_files_diff', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route( # legacy route to make old links work
name='repo_files_diff_2way_redirect',
pattern='/{repo_name:.*?[^/]}/diff-2way/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_diff_2way_redirect',
route_name='repo_files_diff_2way_redirect', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_files',
pattern='/{repo_name:.*?[^/]}/files/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files',
route_name='repo_files', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files:default_path',
pattern='/{repo_name:.*?[^/]}/files/{commit_id}/', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files',
route_name='repo_files:default_path', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files:default_commit',
pattern='/{repo_name:.*?[^/]}/files', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files',
route_name='repo_files:default_commit', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_files:rendered',
pattern='/{repo_name:.*?[^/]}/render/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files',
route_name='repo_files:rendered', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_files:annotated',
pattern='/{repo_name:.*?[^/]}/annotate/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files',
route_name='repo_files:annotated', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files:annotated_previous',
pattern='/{repo_name:.*?[^/]}/annotate-previous/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_annotated_previous',
route_name='repo_files:annotated_previous', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_nodetree_full',
pattern='/{repo_name:.*?[^/]}/nodetree_full/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_nodetree_full',
route_name='repo_nodetree_full', request_method='GET',
renderer=None, xhr=True)
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_nodetree_full:default_path',
pattern='/{repo_name:.*?[^/]}/nodetree_full/{commit_id}/', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_nodetree_full',
route_name='repo_nodetree_full:default_path', request_method='GET',
renderer=None, xhr=True)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_files_nodelist',
pattern='/{repo_name:.*?[^/]}/nodelist/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_nodelist',
route_name='repo_files_nodelist', request_method='GET',
renderer='json_ext', xhr=True)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_file_raw',
pattern='/{repo_name:.*?[^/]}/raw/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_file_raw',
route_name='repo_file_raw', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_file_download',
pattern='/{repo_name:.*?[^/]}/download/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_file_download',
route_name='repo_file_download', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route( # backward compat to keep old links working
name='repo_file_download:legacy',
pattern='/{repo_name:.*?[^/]}/rawfile/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_file_download',
route_name='repo_file_download:legacy', request_method='GET',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_file_history',
pattern='/{repo_name:.*?[^/]}/history/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_file_history',
route_name='repo_file_history', request_method='GET',
renderer='json_ext')
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
name='repo_file_authors',
pattern='/{repo_name:.*?[^/]}/authors/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_file_authors',
route_name='repo_file_authors', request_method='GET',
renderer='rhodecode:templates/files/file_authors_box.mako')
files: ported repository files controllers to pyramid views.
r1927
config.add_route(
dan
files: add pre-commit checks on file operations to prevent loosing content while editing when repositories change....
r4302 name='repo_files_check_head',
pattern='/{repo_name:.*?[^/]}/check_head/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_check_head',
route_name='repo_files_check_head', request_method='POST',
renderer='json_ext', xhr=True)
dan
files: add pre-commit checks on file operations to prevent loosing content while editing when repositories change....
r4302 config.add_route(
files: ported repository files controllers to pyramid views.
r1927 name='repo_files_remove_file',
pattern='/{repo_name:.*?[^/]}/remove_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_remove_file',
route_name='repo_files_remove_file', request_method='GET',
renderer='rhodecode:templates/files/files_delete.mako')
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files_delete_file',
pattern='/{repo_name:.*?[^/]}/delete_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_delete_file',
route_name='repo_files_delete_file', request_method='POST',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files_edit_file',
pattern='/{repo_name:.*?[^/]}/edit_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_edit_file',
route_name='repo_files_edit_file', request_method='GET',
renderer='rhodecode:templates/files/files_edit.mako')
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files_update_file',
pattern='/{repo_name:.*?[^/]}/update_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_update_file',
route_name='repo_files_update_file', request_method='POST',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
name='repo_files_add_file',
pattern='/{repo_name:.*?[^/]}/add_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_add_file',
route_name='repo_files_add_file', request_method='GET',
renderer='rhodecode:templates/files/files_add.mako')
files: ported repository files controllers to pyramid views.
r1927 config.add_route(
files: split add/upload templaates
r3710 name='repo_files_upload_file',
pattern='/{repo_name:.*?[^/]}/upload_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFilesView,
attr='repo_files_add_file',
route_name='repo_files_upload_file', request_method='GET',
renderer='rhodecode:templates/files/files_upload.mako')
config.add_view( # POST creates
RepoFilesView,
attr='repo_files_upload_file',
route_name='repo_files_upload_file', request_method='POST',
renderer='json_ext')
files: split add/upload templaates
r3710 config.add_route(
feat(ui): added ability to replace binary file through UI, added related tests. Fixes: RCCE-19
r5274 name='repo_files_replace_binary',
pattern='/{repo_name:.*?[^/]}/replace_binary/{commit_id}/{f_path:.*}',
repo_route=True)
config.add_view(
RepoFilesView,
attr='repo_files_replace_file',
route_name='repo_files_replace_binary', request_method='POST',
renderer='json_ext')
config.add_route(
files: ported repository files controllers to pyramid views.
r1927 name='repo_files_create_file',
pattern='/{repo_name:.*?[^/]}/create_file/{commit_id}/{f_path:.*}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view( # POST creates
RepoFilesView,
attr='repo_files_create_file',
route_name='repo_files_create_file', request_method='POST',
renderer=None)
files: ported repository files controllers to pyramid views.
r1927
compare: migrated code from pylons to pyramid views.
r1957 # Refs data
repo-summary: re-implemented summary view as pyramid....
r1785 config.add_route(
name='repo_refs_data',
pattern='/{repo_name:.*?[^/]}/refs-data', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSummaryView,
attr='repo_refs_data',
route_name='repo_refs_data', request_method='GET',
renderer='json_ext')
repo-summary: re-implemented summary view as pyramid....
r1785
config.add_route(
name='repo_refs_changelog_data',
pattern='/{repo_name:.*?[^/]}/refs-data-changelog', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSummaryView,
attr='repo_refs_changelog_data',
route_name='repo_refs_changelog_data', request_method='GET',
renderer='json_ext')
repo-summary: re-implemented summary view as pyramid....
r1785
config.add_route(
name='repo_stats',
pattern='/{repo_name:.*?[^/]}/repo_stats/{commit_id}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSummaryView,
attr='repo_stats',
route_name='repo_stats', request_method='GET',
renderer='json_ext')
repo-settings: moved advanced setion into pyramid views....
r1751
changelog: rename changelog to commits pages
r3742 # Commits
config.add_route(
name='repo_commits',
pattern='/{repo_name:.*?[^/]}/commits', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoChangelogView,
attr='repo_changelog',
route_name='repo_commits', request_method='GET',
renderer='rhodecode:templates/commits/changelog.mako')
# old routes for backward compat
config.add_view(
RepoChangelogView,
attr='repo_changelog',
route_name='repo_changelog', request_method='GET',
renderer='rhodecode:templates/commits/changelog.mako')
config.add_route(
name='repo_commits_elements',
pattern='/{repo_name:.*?[^/]}/commits_elements', repo_route=True)
config.add_view(
RepoChangelogView,
attr='repo_commits_elements',
route_name='repo_commits_elements', request_method=('GET', 'POST'),
renderer='rhodecode:templates/commits/changelog_elements.mako',
xhr=True)
config.add_route(
name='repo_commits_elements_file',
pattern='/{repo_name:.*?[^/]}/commits_elements/{commit_id}/{f_path:.*}', repo_route=True)
config.add_view(
RepoChangelogView,
attr='repo_commits_elements',
route_name='repo_commits_elements_file', request_method=('GET', 'POST'),
renderer='rhodecode:templates/commits/changelog_elements.mako',
xhr=True)
changelog: rename changelog to commits pages
r3742 config.add_route(
name='repo_commits_file',
pattern='/{repo_name:.*?[^/]}/commits/{commit_id}/{f_path:.*}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoChangelogView,
attr='repo_changelog',
route_name='repo_commits_file', request_method='GET',
renderer='rhodecode:templates/commits/changelog.mako')
# old routes for backward compat
config.add_view(
RepoChangelogView,
attr='repo_changelog',
route_name='repo_changelog_file', request_method='GET',
renderer='rhodecode:templates/commits/changelog.mako')
changelog: rename changelog to commits pages
r3742
# Changelog (old deprecated name for commits page)
changelog: ported to pyramid views.
r1931 config.add_route(
name='repo_changelog',
pattern='/{repo_name:.*?[^/]}/changelog', repo_route=True)
config.add_route(
name='repo_changelog_file',
pattern='/{repo_name:.*?[^/]}/changelog/{commit_id}/{f_path:.*}', repo_route=True)
compare: migrated code from pylons to pyramid views.
r1957 # Compare
config.add_route(
name='repo_compare_select',
pattern='/{repo_name:.*?[^/]}/compare', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCompareView,
attr='compare_select',
route_name='repo_compare_select', request_method='GET',
renderer='rhodecode:templates/compare/compare_diff.mako')
compare: migrated code from pylons to pyramid views.
r1957
config.add_route(
name='repo_compare',
pattern='/{repo_name:.*?[^/]}/compare/{source_ref_type}@{source_ref:.*?}...{target_ref_type}@{target_ref:.*?}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCompareView,
attr='compare',
route_name='repo_compare', request_method='GET',
renderer=None)
compare: migrated code from pylons to pyramid views.
r1957
tags/branches/bookmarks: moved views into pyramid.
r1746 # Tags
config.add_route(
name='tags_home',
pattern='/{repo_name:.*?[^/]}/tags', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoTagsView,
attr='tags',
route_name='tags_home', request_method='GET',
renderer='rhodecode:templates/tags/tags.mako')
tags/branches/bookmarks: moved views into pyramid.
r1746
# Branches
config.add_route(
name='branches_home',
pattern='/{repo_name:.*?[^/]}/branches', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoBranchesView,
attr='branches',
route_name='branches_home', request_method='GET',
renderer='rhodecode:templates/branches/branches.mako')
tags/branches/bookmarks: moved views into pyramid.
r1746
feat(branch removal trough UI): Added ability to remove branches trough UI from git and hg repositories. Fixes: RCCE-75
r5428 config.add_route(
name='branch_remove',
fix(branch removal trough UI): changed route path. Fixes: RCCE-75
r5436 pattern='/{repo_name:.*?[^/]}/branches/{branch_name:.*?[^/]}/remove', repo_route=True, repo_accepted_types=['hg', 'git'])
feat(branch removal trough UI): Added ability to remove branches trough UI from git and hg repositories. Fixes: RCCE-75
r5428 config.add_view(
RepoBranchesView,
attr='remove_branch',
route_name='branch_remove', request_method='POST'
)
forks: moved pylons code into pyramid.
r1988 # Bookmarks
tags/branches/bookmarks: moved views into pyramid.
r1746 config.add_route(
name='bookmarks_home',
pattern='/{repo_name:.*?[^/]}/bookmarks', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoBookmarksView,
attr='bookmarks',
route_name='bookmarks_home', request_method='GET',
renderer='rhodecode:templates/bookmarks/bookmarks.mako')
tags/branches/bookmarks: moved views into pyramid.
r1746
forks: moved pylons code into pyramid.
r1988 # Forks
config.add_route(
name='repo_fork_new',
pattern='/{repo_name:.*?[^/]}/fork', repo_route=True,
repositories: added option to archive repositories instead of deleting them....
r3090 repo_forbid_when_archived=True,
forks: moved pylons code into pyramid.
r1988 repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoForksView,
attr='repo_fork_new',
route_name='repo_fork_new', request_method='GET',
renderer='rhodecode:templates/forks/forks.mako')
forks: moved pylons code into pyramid.
r1988
config.add_route(
name='repo_fork_create',
pattern='/{repo_name:.*?[^/]}/fork/create', repo_route=True,
repositories: added option to archive repositories instead of deleting them....
r3090 repo_forbid_when_archived=True,
forks: moved pylons code into pyramid.
r1988 repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoForksView,
attr='repo_fork_create',
route_name='repo_fork_create', request_method='POST',
renderer='rhodecode:templates/forks/fork.mako')
forks: moved pylons code into pyramid.
r1988
config.add_route(
name='repo_forks_show_all',
pattern='/{repo_name:.*?[^/]}/forks', repo_route=True,
repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoForksView,
attr='repo_forks_show_all',
route_name='repo_forks_show_all', request_method='GET',
renderer='rhodecode:templates/forks/forks.mako')
forks: moved pylons code into pyramid.
r1988 config.add_route(
name='repo_forks_data',
pattern='/{repo_name:.*?[^/]}/forks/data', repo_route=True,
repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoForksView,
attr='repo_forks_data',
route_name='repo_forks_data', request_method='GET',
renderer='json_ext', xhr=True)
forks: moved pylons code into pyramid.
r1988
audit-logs: introduced new view to replace admin journal....
r1758 # Pull Requests
config.add_route(
name='pullrequest_show',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}',
audit-logs: introduced new view to replace admin journal....
r1758 repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_show',
route_name='pullrequest_show', request_method='GET',
renderer='rhodecode:templates/pullrequests/pullrequest_show.mako')
audit-logs: introduced new view to replace admin journal....
r1758
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766 config.add_route(
name='pullrequest_show_all',
pattern='/{repo_name:.*?[^/]}/pull-request',
repo_route=True, repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_list',
route_name='pullrequest_show_all', request_method='GET',
renderer='rhodecode:templates/pullrequests/pullrequests.mako')
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766
config.add_route(
name='pullrequest_show_all_data',
pattern='/{repo_name:.*?[^/]}/pull-request-data',
repo_route=True, repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_list_data',
route_name='pullrequest_show_all_data', request_method='GET',
renderer='json_ext', xhr=True)
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766
pull-requests: migrated code from pylons to pyramid
r1974 config.add_route(
name='pullrequest_repo_refs',
pattern='/{repo_name:.*?[^/]}/pull-request/refs/{target_repo_name:.*?[^/]}',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_repo_refs',
route_name='pullrequest_repo_refs', request_method='GET',
renderer='json_ext', xhr=True)
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
pull-requests: allow having repo targets all forks and parent forks of target....
r3330 name='pullrequest_repo_targets',
pattern='/{repo_name:.*?[^/]}/pull-request/repo-targets',
pull-requests: migrated code from pylons to pyramid
r1974 repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pullrequest_repo_targets',
route_name='pullrequest_repo_targets', request_method='GET',
renderer='json_ext', xhr=True)
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
name='pullrequest_new',
pattern='/{repo_name:.*?[^/]}/pull-request/new',
repositories: added option to archive repositories instead of deleting them....
r3090 repo_route=True, repo_accepted_types=['hg', 'git'],
repo_forbid_when_archived=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_new',
route_name='pullrequest_new', request_method='GET',
renderer='rhodecode:templates/pullrequests/pullrequest.mako')
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
name='pullrequest_create',
pattern='/{repo_name:.*?[^/]}/pull-request/create',
repositories: added option to archive repositories instead of deleting them....
r3090 repo_route=True, repo_accepted_types=['hg', 'git'],
repo_forbid_when_archived=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_create',
route_name='pullrequest_create', request_method='POST',
renderer=None)
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
name='pullrequest_update',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/update',
repositories: added option to archive repositories instead of deleting them....
r3090 repo_route=True, repo_forbid_when_archived=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_update',
route_name='pullrequest_update', request_method='POST',
renderer='json_ext')
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
name='pullrequest_merge',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/merge',
repositories: added option to archive repositories instead of deleting them....
r3090 repo_route=True, repo_forbid_when_archived=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_merge',
route_name='pullrequest_merge', request_method='POST',
renderer='json_ext')
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
name='pullrequest_delete',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/delete',
repositories: added option to archive repositories instead of deleting them....
r3090 repo_route=True, repo_forbid_when_archived=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_delete',
route_name='pullrequest_delete', request_method='POST',
renderer='json_ext')
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
name='pullrequest_comment_create',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment',
pull-requests: migrated code from pylons to pyramid
r1974 repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_comment_create',
route_name='pullrequest_comment_create', request_method='POST',
renderer='json_ext')
pull-requests: migrated code from pylons to pyramid
r1974
config.add_route(
comments: edit functionality added
r4401 name='pullrequest_comment_edit',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/edit',
comments: edit functionality added
r4401 repo_route=True, repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_comment_edit',
route_name='pullrequest_comment_edit', request_method='POST',
renderer='json_ext')
comments: edit functionality added
r4401
config.add_route(
pull-requests: migrated code from pylons to pyramid
r1974 name='pullrequest_comment_delete',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/delete',
pull-requests: migrated code from pylons to pyramid
r1974 repo_route=True, repo_accepted_types=['hg', 'git'])
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pull_request_comment_delete',
route_name='pullrequest_comment_delete', request_method='POST',
renderer='json_ext')
pull-requests: migrated code from pylons to pyramid
r1974
pull-requests: overhaul of the UX by adding new sidebar...
r4482 config.add_route(
name='pullrequest_comments',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comments',
pull-requests: overhaul of the UX by adding new sidebar...
r4482 repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pullrequest_comments',
route_name='pullrequest_comments', request_method='POST',
renderer='string_html', xhr=True)
pull-requests: overhaul of the UX by adding new sidebar...
r4482
config.add_route(
name='pullrequest_todos',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/todos',
pull-requests: overhaul of the UX by adding new sidebar...
r4482 repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pullrequest_todos',
route_name='pullrequest_todos', request_method='POST',
renderer='string_html', xhr=True)
pull-requests: overhaul of the UX by adding new sidebar...
r4482
drafts: sidebar functionality
r4562 config.add_route(
name='pullrequest_drafts',
routing: fixed depracated patterns for routes matching using /d
r5099 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/drafts',
drafts: sidebar functionality
r4562 repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoPullRequestsView,
attr='pullrequest_drafts',
route_name='pullrequest_drafts', request_method='POST',
renderer='string_html', xhr=True)
drafts: sidebar functionality
r4562
repo: added base CE display of new artifacts
r3671 # Artifacts, (EE feature)
config.add_route(
name='repo_artifacts_list',
pattern='/{repo_name:.*?[^/]}/artifacts', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoArtifactsView,
attr='repo_artifacts',
route_name='repo_artifacts_list', request_method='GET',
renderer='rhodecode:templates/artifacts/artifact_list.mako')
repo: added base CE display of new artifacts
r3671
repo-settings: converted repo settings to pyramid...
r1716 # Settings
config.add_route(
name='edit_repo',
pattern='/{repo_name:.*?[^/]}/settings', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsView,
attr='edit_settings',
route_name='edit_repo', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-groups: moved to pyramid
r2175 # update is POST on edit_repo
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsView,
attr='edit_settings_update',
route_name='edit_repo', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: converted repo settings to pyramid...
r1716
repo-settings: moved advanced setion into pyramid views....
r1751 # Settings advanced
config.add_route(
name='edit_repo_advanced',
pattern='/{repo_name:.*?[^/]}/settings/advanced', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced',
route_name='edit_repo_advanced', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: moved advanced setion into pyramid views....
r1751 config.add_route(
repositories: added option to archive repositories instead of deleting them....
r3090 name='edit_repo_advanced_archive',
pattern='/{repo_name:.*?[^/]}/settings/advanced/archive', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced_archive',
route_name='edit_repo_advanced_archive', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: added option to archive repositories instead of deleting them....
r3090 config.add_route(
repo-settings: moved advanced setion into pyramid views....
r1751 name='edit_repo_advanced_delete',
pattern='/{repo_name:.*?[^/]}/settings/advanced/delete', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced_delete',
route_name='edit_repo_advanced_delete', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: moved advanced setion into pyramid views....
r1751 config.add_route(
name='edit_repo_advanced_locking',
pattern='/{repo_name:.*?[^/]}/settings/advanced/locking', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced_toggle_locking',
route_name='edit_repo_advanced_locking', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: moved advanced setion into pyramid views....
r1751 config.add_route(
name='edit_repo_advanced_journal',
pattern='/{repo_name:.*?[^/]}/settings/advanced/journal', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced_journal',
route_name='edit_repo_advanced_journal', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: moved advanced setion into pyramid views....
r1751 config.add_route(
name='edit_repo_advanced_fork',
pattern='/{repo_name:.*?[^/]}/settings/advanced/fork', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced_fork',
route_name='edit_repo_advanced_fork', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: moved advanced setion into pyramid views....
r1751
repo-settings: add hidden view to force re-install hooks....
r2678 config.add_route(
name='edit_repo_advanced_hooks',
pattern='/{repo_name:.*?[^/]}/settings/advanced/hooks', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsAdvancedView,
attr='edit_advanced_install_hooks',
route_name='edit_repo_advanced_hooks', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-settings: add hidden view to force re-install hooks....
r2678
repo-caches: moved view into pyramid.
r1722 # Caches
config.add_route(
name='edit_repo_caches',
pattern='/{repo_name:.*?[^/]}/settings/caches', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoCachesView,
attr='repo_caches',
route_name='edit_repo_caches', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
config.add_view(
RepoCachesView,
attr='repo_caches_purge',
route_name='edit_repo_caches', request_method='POST')
repo-caches: moved view into pyramid.
r1722
repo-permissions: moved permissions into pyramid....
r1734 # Permissions
config.add_route(
name='edit_repo_perms',
pattern='/{repo_name:.*?[^/]}/settings/permissions', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsPermissionsView,
attr='edit_permissions',
route_name='edit_repo_perms', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
config.add_view(
RepoSettingsPermissionsView,
attr='edit_permissions_update',
route_name='edit_repo_perms', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-permissions: moved permissions into pyramid....
r1734
repository-permissions: enable shortcut to set private mode in permission page.
r3809 config.add_route(
name='edit_repo_perms_set_private',
pattern='/{repo_name:.*?[^/]}/settings/permissions/set_private', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsPermissionsView,
attr='edit_permissions_set_private_repo',
route_name='edit_repo_perms_set_private', request_method='POST',
renderer='json_ext')
repository-permissions: enable shortcut to set private mode in permission page.
r3809
branch permissions: added logic to define in UI branch permissions....
r2975 # Permissions Branch (EE feature)
config.add_route(
name='edit_repo_perms_branch',
pattern='/{repo_name:.*?[^/]}/settings/branch_permissions', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
branch-permissions: fixed ce view. Fixes #5656
r4668 RepoSettingsBranchPermissionsView,
attr='branch_permissions',
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 route_name='edit_repo_perms_branch', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
branch permissions: added logic to define in UI branch permissions....
r2975 config.add_route(
name='edit_repo_perms_branch_delete',
pattern='/{repo_name:.*?[^/]}/settings/branch_permissions/{rule_id}/delete',
repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 ## Only implemented in EE
branch permissions: added logic to define in UI branch permissions....
r2975
repositories: rewrote whole admin section to pyramid....
r2014 # Maintenance
config.add_route(
name='edit_repo_maintenance',
pattern='/{repo_name:.*?[^/]}/settings/maintenance', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoMaintenanceView,
attr='repo_maintenance',
miantainance: fixed bad routes def
r4658 route_name='edit_repo_maintenance', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014
config.add_route(
name='edit_repo_maintenance_execute',
pattern='/{repo_name:.*?[^/]}/settings/maintenance/execute', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoMaintenanceView,
attr='repo_maintenance_execute',
miantainance: fixed bad routes def
r4658 route_name='edit_repo_maintenance_execute', request_method='GET',
renderer='json', xhr=True)
repositories: rewrote whole admin section to pyramid....
r2014
# Fields
config.add_route(
name='edit_repo_fields',
pattern='/{repo_name:.*?[^/]}/settings/fields', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsFieldsView,
attr='repo_field_edit',
route_name='edit_repo_fields', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_fields_create',
pattern='/{repo_name:.*?[^/]}/settings/fields/create', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsFieldsView,
attr='repo_field_create',
route_name='edit_repo_fields_create', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_fields_delete',
pattern='/{repo_name:.*?[^/]}/settings/fields/{field_id}/delete', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsFieldsView,
attr='repo_field_delete',
route_name='edit_repo_fields_delete', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014
apps: various fixes and improvements for python3
r5072 # quick actions: locking
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
apps: various fixes and improvements for python3
r5072 name='repo_settings_quick_actions',
pattern='/{repo_name:.*?[^/]}/settings/quick-action', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsView,
apps: various fixes and improvements for python3
r5072 attr='repo_settings_quick_actions',
route_name='repo_settings_quick_actions', request_method='GET',
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014
# Remote
config.add_route(
name='edit_repo_remote',
pattern='/{repo_name:.*?[^/]}/settings/remote', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsRemoteView,
attr='repo_remote_edit_form',
route_name='edit_repo_remote', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_remote_pull',
pattern='/{repo_name:.*?[^/]}/settings/remote/pull', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsRemoteView,
attr='repo_remote_pull_changes',
route_name='edit_repo_remote_pull', request_method='POST',
renderer=None)
repositories: allow properly updating repository push url.
r2562 config.add_route(
name='edit_repo_remote_push',
pattern='/{repo_name:.*?[^/]}/settings/remote/push', repo_route=True)
repositories: rewrote whole admin section to pyramid....
r2014
# Statistics
config.add_route(
name='edit_repo_statistics',
pattern='/{repo_name:.*?[^/]}/settings/statistics', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsView,
attr='edit_statistics_form',
route_name='edit_repo_statistics', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_statistics_reset',
pattern='/{repo_name:.*?[^/]}/settings/statistics/update', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsView,
attr='repo_statistics_reset',
route_name='edit_repo_statistics_reset', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014
# Issue trackers
config.add_route(
name='edit_repo_issuetracker',
pattern='/{repo_name:.*?[^/]}/settings/issue_trackers', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsIssueTrackersView,
attr='repo_issuetracker',
route_name='edit_repo_issuetracker', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_issuetracker_test',
pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/test', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsIssueTrackersView,
attr='repo_issuetracker_test',
route_name='edit_repo_issuetracker_test', request_method='POST',
renderer='string', xhr=True)
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_issuetracker_delete',
pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/delete', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsIssueTrackersView,
attr='repo_issuetracker_delete',
route_name='edit_repo_issuetracker_delete', request_method='POST',
renderer='json_ext', xhr=True)
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_issuetracker_update',
pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/update', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsIssueTrackersView,
attr='repo_issuetracker_update',
route_name='edit_repo_issuetracker_update', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014
# VCS Settings
config.add_route(
name='edit_repo_vcs',
pattern='/{repo_name:.*?[^/]}/settings/vcs', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsVcsView,
attr='repo_vcs_settings',
route_name='edit_repo_vcs', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014 config.add_route(
name='edit_repo_vcs_update',
pattern='/{repo_name:.*?[^/]}/settings/vcs/update', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsVcsView,
attr='repo_settings_vcs_update',
route_name='edit_repo_vcs_update', request_method='POST',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repositories: rewrote whole admin section to pyramid....
r2014
# svn pattern
config.add_route(
name='edit_repo_vcs_svn_pattern_delete',
pattern='/{repo_name:.*?[^/]}/settings/vcs/svn_pattern/delete', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSettingsVcsView,
attr='repo_settings_delete_svn_pattern',
route_name='edit_repo_vcs_svn_pattern_delete', request_method='POST',
renderer='json_ext', xhr=True)
repositories: rewrote whole admin section to pyramid....
r2014
# Repo Review Rules (EE feature)
repo-reviewers: expose a default placeholder on CE edition....
r1725 config.add_route(
name='repo_reviewers',
pattern='/{repo_name:.*?[^/]}/settings/review/rules', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoReviewRulesView,
attr='repo_review_rules',
route_name='repo_reviewers', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-reviewers: expose a default placeholder on CE edition....
r1725
reviewers: moved the new v1 api of default reviewers into pyramid view....
r1767 config.add_route(
name='repo_default_reviewers_data',
pattern='/{repo_name:.*?[^/]}/settings/review/default-reviewers', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoReviewRulesView,
attr='repo_default_reviewers_data',
route_name='repo_default_reviewers_data', request_method='GET',
renderer='json_ext')
reviewers: moved the new v1 api of default reviewers into pyramid view....
r1767
repo-automation: added placeholder for EE feature.
r2565 # Repo Automation (EE feature)
config.add_route(
name='repo_automation',
pattern='/{repo_name:.*?[^/]}/settings/automation', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoAutomationView,
attr='repo_automation',
route_name='repo_automation', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
repo-automation: added placeholder for EE feature.
r2565
Bartłomiej Wołyńczyk
strip: added functionality to stip choosen commits on repo settings
r1587 # Strip
config.add_route(
repositories: rewrote whole admin section to pyramid....
r2014 name='edit_repo_strip',
repo-settings: unify the URL schemas and always use settings/ for repo based...
r1745 pattern='/{repo_name:.*?[^/]}/settings/strip', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoStripView,
attr='strip',
route_name='edit_repo_strip', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
Bartłomiej Wołyńczyk
strip: added functionality to stip choosen commits on repo settings
r1587
config.add_route(
name='strip_check',
repo-settings: unify the URL schemas and always use settings/ for repo based...
r1745 pattern='/{repo_name:.*?[^/]}/settings/strip_check', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoStripView,
attr='strip_check',
route_name='strip_check', request_method='POST',
renderer='json', xhr=True)
Bartłomiej Wołyńczyk
strip: added functionality to stip choosen commits on repo settings
r1587
config.add_route(
name='strip_execute',
repo-settings: unify the URL schemas and always use settings/ for repo based...
r1745 pattern='/{repo_name:.*?[^/]}/settings/strip_execute', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoStripView,
attr='strip_execute',
route_name='strip_execute', request_method='POST',
renderer='json', xhr=True)
repo-settings: moved advanced setion into pyramid views....
r1751
audit-logs: expose tailoed audit logs in repository view
r2156 # Audit logs
config.add_route(
name='edit_repo_audit_logs',
pattern='/{repo_name:.*?[^/]}/settings/audit_logs', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
AuditLogsView,
attr='repo_audit_logs',
route_name='edit_repo_audit_logs', request_method='GET',
renderer='rhodecode:templates/admin/repos/repo_edit.mako')
audit-logs: expose tailoed audit logs in repository view
r2156
rss: use permalinks without slashes for feeds. Fixes #5557
r3810 # ATOM/RSS Feed, shouldn't contain slashes for outlook compatibility
dan
repo-feed: moved from pylons controller to pyramid views.
r1899 config.add_route(
name='rss_feed_home',
rss: use permalinks without slashes for feeds. Fixes #5557
r3810 pattern='/{repo_name:.*?[^/]}/feed-rss', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFeedView,
attr='rss',
route_name='rss_feed_home', request_method='GET', renderer=None)
config.add_route(
name='rss_feed_home_old',
pattern='/{repo_name:.*?[^/]}/feed/rss', repo_route=True)
config.add_view(
RepoFeedView,
attr='rss',
route_name='rss_feed_home_old', request_method='GET', renderer=None)
rss: use permalinks without slashes for feeds. Fixes #5557
r3810
config.add_route(
name='atom_feed_home',
pattern='/{repo_name:.*?[^/]}/feed-atom', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFeedView,
attr='atom',
route_name='atom_feed_home', request_method='GET', renderer=None)
dan
repo-feed: moved from pylons controller to pyramid views.
r1899
config.add_route(
rss: use permalinks without slashes for feeds. Fixes #5557
r3810 name='atom_feed_home_old',
dan
repo-feed: moved from pylons controller to pyramid views.
r1899 pattern='/{repo_name:.*?[^/]}/feed/atom', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoFeedView,
attr='atom',
route_name='atom_feed_home_old', request_method='GET', renderer=None)
dan
repo-feed: moved from pylons controller to pyramid views.
r1899
repo-settings: moved advanced setion into pyramid views....
r1751 # NOTE(marcink): needs to be at the end for catch-all
repo-summary: re-implemented summary view as pyramid....
r1785 add_route_with_slash(
config,
name='repo_summary',
pattern='/{repo_name:.*?[^/]}', repo_route=True)
application: not use config.scan(), and replace all @add_view decorator into a explicit add_view call for faster app start.
r4610 config.add_view(
RepoSummaryView,
attr='summary',
route_name='repo_summary', request_method='GET',
renderer='rhodecode:templates/summary/summary.mako')
# TODO(marcink): there's no such route??
config.add_view(
RepoSummaryView,
attr='summary',
route_name='repo_summary_slash', request_method='GET',
renderer='rhodecode:templates/summary/summary.mako')