Mercurial > kallithea
annotate rhodecode/config/routing.py @ 1670:d2de0c2f02cd beta
#77 code review
- initial very simple version of changeset comments
- RST parsed
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 11 Nov 2011 20:41:53 +0200 |
parents | 0069657aaf42 |
children | 6f0143e5efe5 |
rev | line source |
---|---|
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
1 """ |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
2 Routes configuration |
0 | 3 |
4 The more specific and detailed routes should be defined first so they | |
5 may take precedent over the more generic routes. For more information | |
6 refer to the routes manual at http://routes.groovie.org/docs/ | |
7 """ | |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
8 from __future__ import with_statement |
0 | 9 from routes import Mapper |
1505
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
10 |
0 | 11 |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
12 # prefix for non repository related links needs to be prefixed with `/` |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
13 ADMIN_PREFIX = '/_admin' |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
14 |
1205
f4807acf643d
added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1203
diff
changeset
|
15 |
43 | 16 def make_map(config): |
0 | 17 """Create, configure and return the routes Mapper""" |
1211 | 18 rmap = Mapper(directory=config['pylons.paths']['controllers'], |
43 | 19 always_scan=config['debug']) |
1211 | 20 rmap.minimization = False |
21 rmap.explicit = False | |
1538
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
22 |
1507
7d687ed11929
changed check_... functions from their stupid names to something less retarded :)
Marcin Kuzminski <marcin@python-works.com>
parents:
1505
diff
changeset
|
23 from rhodecode.lib.utils import is_valid_repo |
7d687ed11929
changed check_... functions from their stupid names to something less retarded :)
Marcin Kuzminski <marcin@python-works.com>
parents:
1505
diff
changeset
|
24 from rhodecode.lib.utils import is_valid_repos_group |
1538
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
25 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
26 def check_repo(environ, match_dict): |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
27 """ |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
28 check for valid repository for proper 404 handling |
1505
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
29 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
30 :param environ: |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
31 :param match_dict: |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
32 """ |
1538
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
33 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
34 repo_name = match_dict.get('repo_name') |
1507
7d687ed11929
changed check_... functions from their stupid names to something less retarded :)
Marcin Kuzminski <marcin@python-works.com>
parents:
1505
diff
changeset
|
35 return is_valid_repo(repo_name, config['base_path']) |
1505
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
36 |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
37 def check_group(environ, match_dict): |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
38 """ |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
39 check for valid repositories group for proper 404 handling |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
40 |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
41 :param environ: |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
42 :param match_dict: |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
43 """ |
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
44 repos_group_name = match_dict.get('group_name') |
1538
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
45 |
1507
7d687ed11929
changed check_... functions from their stupid names to something less retarded :)
Marcin Kuzminski <marcin@python-works.com>
parents:
1505
diff
changeset
|
46 return is_valid_repos_group(repos_group_name, config['base_path']) |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
47 |
1348
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
48 |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
49 def check_int(environ, match_dict): |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
50 return match_dict.get('id').isdigit() |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
51 |
0 | 52 # The ErrorController route (handles 404/500 error pages); it should |
53 # likely stay at the top, ensuring it can always be resolved | |
1211 | 54 rmap.connect('/error/{action}', controller='error') |
55 rmap.connect('/error/{action}/{id}', controller='error') | |
0 | 56 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
57 #========================================================================== |
0 | 58 # CUSTOM ROUTES HERE |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
59 #========================================================================== |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
60 |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
61 #MAIN PAGE |
1211 | 62 rmap.connect('home', '/', controller='home', action='index') |
1214
a2dba9356c64
fixed removed route during pep8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1211
diff
changeset
|
63 rmap.connect('repo_switcher', '/repos', controller='home', |
a2dba9356c64
fixed removed route during pep8ify
Marcin Kuzminski <marcin@python-works.com>
parents:
1211
diff
changeset
|
64 action='repo_switcher') |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1538
diff
changeset
|
65 rmap.connect('branch_tag_switcher', '/branches-tags/{repo_name:.*}', |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1538
diff
changeset
|
66 controller='home',action='branch_tag_switcher') |
1211 | 67 rmap.connect('bugtracker', |
68 "http://bitbucket.org/marcinkuzminski/rhodecode/issues", | |
69 _static=True) | |
70 rmap.connect('rhodecode_official', "http://rhodecode.org", _static=True) | |
1143
0e6035a85980
added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1114
diff
changeset
|
71 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
72 #ADMIN REPOSITORY REST ROUTES |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
73 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
74 controller='admin/repos') as m: |
248
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
75 m.connect("repos", "/repos", |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
76 action="create", conditions=dict(method=["POST"])) |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
77 m.connect("repos", "/repos", |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
78 action="index", conditions=dict(method=["GET"])) |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
79 m.connect("formatted_repos", "/repos.{format}", |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
80 action="index", |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
81 conditions=dict(method=["GET"])) |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
82 m.connect("new_repo", "/repos/new", |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
83 action="new", conditions=dict(method=["GET"])) |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
84 m.connect("formatted_new_repo", "/repos/new.{format}", |
fb7f066126cc
Added support for repository located in subdirectories.
Marcin Kuzminski <marcin@python-works.com>
parents:
230
diff
changeset
|
85 action="new", conditions=dict(method=["GET"])) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
86 m.connect("/repos/{repo_name:.*}", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
87 action="update", conditions=dict(method=["PUT"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
88 function=check_repo)) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
89 m.connect("/repos/{repo_name:.*}", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
90 action="delete", conditions=dict(method=["DELETE"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
91 function=check_repo)) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
92 m.connect("edit_repo", "/repos/{repo_name:.*}/edit", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
93 action="edit", conditions=dict(method=["GET"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
94 function=check_repo)) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
95 m.connect("formatted_edit_repo", "/repos/{repo_name:.*}.{format}/edit", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
96 action="edit", conditions=dict(method=["GET"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
97 function=check_repo)) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
98 m.connect("repo", "/repos/{repo_name:.*}", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
99 action="show", conditions=dict(method=["GET"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
100 function=check_repo)) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
101 m.connect("formatted_repo", "/repos/{repo_name:.*}.{format}", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
102 action="show", conditions=dict(method=["GET"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
103 function=check_repo)) |
299
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
104 #ajax delete repo perm user |
d303aacb3349
repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents:
248
diff
changeset
|
105 m.connect('delete_repo_user', "/repos_delete_user/{repo_name:.*}", |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
106 action="delete_perm_user", conditions=dict(method=["DELETE"], |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
107 function=check_repo)) |
1015
65129c332d37
#56 added ajax removal of users groups,
Marcin Kuzminski <marcin@python-works.com>
parents:
976
diff
changeset
|
108 #ajax delete repo perm users_group |
1211 | 109 m.connect('delete_repo_users_group', |
110 "/repos_delete_users_group/{repo_name:.*}", | |
111 action="delete_perm_users_group", | |
112 conditions=dict(method=["DELETE"], function=check_repo)) | |
1015
65129c332d37
#56 added ajax removal of users groups,
Marcin Kuzminski <marcin@python-works.com>
parents:
976
diff
changeset
|
113 |
708
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
114 #settings actions |
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
115 m.connect('repo_stats', "/repos_stats/{repo_name:.*}", |
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
116 action="repo_stats", conditions=dict(method=["DELETE"], |
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
117 function=check_repo)) |
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
118 m.connect('repo_cache', "/repos_cache/{repo_name:.*}", |
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
119 action="repo_cache", conditions=dict(method=["DELETE"], |
b9bbc0d6e9f3
added cache reset, stats reset, and delete into repository settings in admin.
Marcin Kuzminski <marcin@python-works.com>
parents:
705
diff
changeset
|
120 function=check_repo)) |
1211 | 121 m.connect('repo_public_journal', |
122 "/repos_public_journal/{repo_name:.*}", | |
123 action="repo_public_journal", conditions=dict(method=["PUT"], | |
124 function=check_repo)) | |
1114
4de3fa6290a7
#109, added manual pull of changes for repositories that have remote location filled in.
Marcin Kuzminski <marcin@python-works.com>
parents:
1088
diff
changeset
|
125 m.connect('repo_pull', "/repo_pull/{repo_name:.*}", |
4de3fa6290a7
#109, added manual pull of changes for repositories that have remote location filled in.
Marcin Kuzminski <marcin@python-works.com>
parents:
1088
diff
changeset
|
126 action="repo_pull", conditions=dict(method=["PUT"], |
4de3fa6290a7
#109, added manual pull of changes for repositories that have remote location filled in.
Marcin Kuzminski <marcin@python-works.com>
parents:
1088
diff
changeset
|
127 function=check_repo)) |
4de3fa6290a7
#109, added manual pull of changes for repositories that have remote location filled in.
Marcin Kuzminski <marcin@python-works.com>
parents:
1088
diff
changeset
|
128 |
1348
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
129 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
130 controller='admin/repos_groups') as m: |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
131 m.connect("repos_groups", "/repos_groups", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
132 action="create", conditions=dict(method=["POST"])) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
133 m.connect("repos_groups", "/repos_groups", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
134 action="index", conditions=dict(method=["GET"])) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
135 m.connect("formatted_repos_groups", "/repos_groups.{format}", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
136 action="index", conditions=dict(method=["GET"])) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
137 m.connect("new_repos_group", "/repos_groups/new", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
138 action="new", conditions=dict(method=["GET"])) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
139 m.connect("formatted_new_repos_group", "/repos_groups/new.{format}", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
140 action="new", conditions=dict(method=["GET"])) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
141 m.connect("update_repos_group", "/repos_groups/{id}", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
142 action="update", conditions=dict(method=["PUT"], |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
143 function=check_int)) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
144 m.connect("delete_repos_group", "/repos_groups/{id}", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
145 action="delete", conditions=dict(method=["DELETE"], |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
146 function=check_int)) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
147 m.connect("edit_repos_group", "/repos_groups/{id}/edit", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
148 action="edit", conditions=dict(method=["GET"], |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
149 function=check_int)) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
150 m.connect("formatted_edit_repos_group", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
151 "/repos_groups/{id}.{format}/edit", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
152 action="edit", conditions=dict(method=["GET"], |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
153 function=check_int)) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
154 m.connect("repos_group", "/repos_groups/{id}", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
155 action="show", conditions=dict(method=["GET"], |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
156 function=check_int)) |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
157 m.connect("formatted_repos_group", "/repos_groups/{id}.{format}", |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
158 action="show", conditions=dict(method=["GET"], |
dccba44ee176
translated resource map into full routes map, added validation for repos_group id
Marcin Kuzminski <marcin@python-works.com>
parents:
1333
diff
changeset
|
159 function=check_int)) |
959
fff21c9b075c
#56 fixed found bugs, implemented adding of new group + forms+validators
Marcin Kuzminski <marcin@python-works.com>
parents:
956
diff
changeset
|
160 |
fff21c9b075c
#56 fixed found bugs, implemented adding of new group + forms+validators
Marcin Kuzminski <marcin@python-works.com>
parents:
956
diff
changeset
|
161 #ADMIN USER REST ROUTES |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
162 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
163 controller='admin/users') as m: |
1266
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
164 m.connect("users", "/users", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
165 action="create", conditions=dict(method=["POST"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
166 m.connect("users", "/users", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
167 action="index", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
168 m.connect("formatted_users", "/users.{format}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
169 action="index", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
170 m.connect("new_user", "/users/new", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
171 action="new", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
172 m.connect("formatted_new_user", "/users/new.{format}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
173 action="new", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
174 m.connect("update_user", "/users/{id}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
175 action="update", conditions=dict(method=["PUT"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
176 m.connect("delete_user", "/users/{id}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
177 action="delete", conditions=dict(method=["DELETE"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
178 m.connect("edit_user", "/users/{id}/edit", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
179 action="edit", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
180 m.connect("formatted_edit_user", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
181 "/users/{id}.{format}/edit", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
182 action="edit", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
183 m.connect("user", "/users/{id}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
184 action="show", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
185 m.connect("formatted_user", "/users/{id}.{format}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
186 action="show", conditions=dict(method=["GET"])) |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
187 |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
188 #EXTRAS USER ROUTES |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
189 m.connect("user_perm", "/users_perm/{id}", |
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
190 action="update_perm", conditions=dict(method=["PUT"])) |
959
fff21c9b075c
#56 fixed found bugs, implemented adding of new group + forms+validators
Marcin Kuzminski <marcin@python-works.com>
parents:
956
diff
changeset
|
191 |
1171
2ab211e0aecd
changes for #56
Marcin Kuzminski <marcin@python-works.com>
parents:
1158
diff
changeset
|
192 #ADMIN USERS REST ROUTES |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
193 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
1271
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
194 controller='admin/users_groups') as m: |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
195 m.connect("users_groups", "/users_groups", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
196 action="create", conditions=dict(method=["POST"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
197 m.connect("users_groups", "/users_groups", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
198 action="index", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
199 m.connect("formatted_users_groups", "/users_groups.{format}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
200 action="index", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
201 m.connect("new_users_group", "/users_groups/new", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
202 action="new", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
203 m.connect("formatted_new_users_group", "/users_groups/new.{format}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
204 action="new", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
205 m.connect("update_users_group", "/users_groups/{id}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
206 action="update", conditions=dict(method=["PUT"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
207 m.connect("delete_users_group", "/users_groups/{id}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
208 action="delete", conditions=dict(method=["DELETE"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
209 m.connect("edit_users_group", "/users_groups/{id}/edit", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
210 action="edit", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
211 m.connect("formatted_edit_users_group", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
212 "/users_groups/{id}.{format}/edit", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
213 action="edit", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
214 m.connect("users_group", "/users_groups/{id}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
215 action="show", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
216 m.connect("formatted_users_group", "/users_groups/{id}.{format}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
217 action="show", conditions=dict(method=["GET"])) |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
218 |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
219 #EXTRAS USER ROUTES |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
220 m.connect("users_group_perm", "/users_groups_perm/{id}", |
aa7e45ad0cea
Fixed permissions for users groups, group can have create repo permission now.
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
221 action="update_perm", conditions=dict(method=["PUT"])) |
956
83d35d716a02
started working on issue #56
Marcin Kuzminski <marcin@python-works.com>
parents:
872
diff
changeset
|
222 |
83d35d716a02
started working on issue #56
Marcin Kuzminski <marcin@python-works.com>
parents:
872
diff
changeset
|
223 #ADMIN GROUP REST ROUTES |
1266
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
224 rmap.resource('group', 'groups', |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
225 controller='admin/groups', path_prefix=ADMIN_PREFIX) |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
226 |
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
227 #ADMIN PERMISSIONS REST ROUTES |
1211 | 228 rmap.resource('permission', 'permissions', |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
229 controller='admin/permissions', path_prefix=ADMIN_PREFIX) |
769
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
230 |
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
231 ##ADMIN LDAP SETTINGS |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
232 rmap.connect('ldap_settings', '%s/ldap' % ADMIN_PREFIX, |
1211 | 233 controller='admin/ldap_settings', action='ldap_settings', |
234 conditions=dict(method=["POST"])) | |
1266
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1214
diff
changeset
|
235 |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
236 rmap.connect('ldap_home', '%s/ldap' % ADMIN_PREFIX, |
1211 | 237 controller='admin/ldap_settings') |
705
9e9f1b919c0c
implements #60, ldap configuration and authentication.
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
238 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
239 #ADMIN SETTINGS REST ROUTES |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
240 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
1211 | 241 controller='admin/settings') as m: |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
242 m.connect("admin_settings", "/settings", |
1211 | 243 action="create", conditions=dict(method=["POST"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
244 m.connect("admin_settings", "/settings", |
1211 | 245 action="index", conditions=dict(method=["GET"])) |
459
7c978511c951
implemented basic (startup) nose test suite.
Marcin Kuzminski <marcin@python-works.com>
parents:
406
diff
changeset
|
246 m.connect("formatted_admin_settings", "/settings.{format}", |
1211 | 247 action="index", conditions=dict(method=["GET"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
248 m.connect("admin_new_setting", "/settings/new", |
1211 | 249 action="new", conditions=dict(method=["GET"])) |
459
7c978511c951
implemented basic (startup) nose test suite.
Marcin Kuzminski <marcin@python-works.com>
parents:
406
diff
changeset
|
250 m.connect("formatted_admin_new_setting", "/settings/new.{format}", |
1211 | 251 action="new", conditions=dict(method=["GET"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
252 m.connect("/settings/{setting_id}", |
1211 | 253 action="update", conditions=dict(method=["PUT"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
254 m.connect("/settings/{setting_id}", |
1211 | 255 action="delete", conditions=dict(method=["DELETE"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
256 m.connect("admin_edit_setting", "/settings/{setting_id}/edit", |
1211 | 257 action="edit", conditions=dict(method=["GET"])) |
258 m.connect("formatted_admin_edit_setting", | |
259 "/settings/{setting_id}.{format}/edit", | |
260 action="edit", conditions=dict(method=["GET"])) | |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
261 m.connect("admin_setting", "/settings/{setting_id}", |
1211 | 262 action="show", conditions=dict(method=["GET"])) |
459
7c978511c951
implemented basic (startup) nose test suite.
Marcin Kuzminski <marcin@python-works.com>
parents:
406
diff
changeset
|
263 m.connect("formatted_admin_setting", "/settings/{setting_id}.{format}", |
1211 | 264 action="show", conditions=dict(method=["GET"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
265 m.connect("admin_settings_my_account", "/my_account", |
1211 | 266 action="my_account", conditions=dict(method=["GET"])) |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
363
diff
changeset
|
267 m.connect("admin_settings_my_account_update", "/my_account_update", |
1211 | 268 action="my_account_update", conditions=dict(method=["PUT"])) |
380
ca54622e39a1
Added separate create repository views for non administrative users.
Marcin Kuzminski <marcin@python-works.com>
parents:
371
diff
changeset
|
269 m.connect("admin_settings_create_repository", "/create_repository", |
1211 | 270 action="create_repository", conditions=dict(method=["GET"])) |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
271 |
1445
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
272 |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
273 #ADMIN MAIN PAGES |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
274 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
275 controller='admin/admin') as m: |
1211 | 276 m.connect('admin_home', '', action='index') |
149
b3c93efd1c97
Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents:
148
diff
changeset
|
277 m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', |
b3c93efd1c97
Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents:
148
diff
changeset
|
278 action='add_repo') |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
279 |
1445
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
280 #========================================================================== |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
281 # API V1 |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
282 #========================================================================== |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
283 with rmap.submapper(path_prefix=ADMIN_PREFIX, |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
284 controller='api/api') as m: |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
285 m.connect('api', '/api') |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
286 |
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
287 |
1211 | 288 #USER JOURNAL |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
289 rmap.connect('journal', '%s/journal' % ADMIN_PREFIX, controller='journal') |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
290 |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
291 rmap.connect('public_journal', '%s/public_journal' % ADMIN_PREFIX, |
1211 | 292 controller='journal', action="public_journal") |
293 | |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
294 rmap.connect('public_journal_rss', '%s/public_journal_rss' % ADMIN_PREFIX, |
1211 | 295 controller='journal', action="public_journal_rss") |
1088
fee472613dfa
made simple global rss and atom feed
Marcin Kuzminski <marcin@python-works.com>
parents:
1085
diff
changeset
|
296 |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
297 rmap.connect('public_journal_atom', |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
298 '%s/public_journal_atom' % ADMIN_PREFIX, controller='journal', |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
299 action="public_journal_atom") |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
300 |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
301 rmap.connect('toggle_following', '%s/toggle_following' % ADMIN_PREFIX, |
1211 | 302 controller='journal', action='toggle_following', |
303 conditions=dict(method=["POST"])) | |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
708
diff
changeset
|
304 |
406
b153a51b1d3b
Implemented search using whoosh. Still as experimental option.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
305 #SEARCH |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
306 rmap.connect('search', '%s/search' % ADMIN_PREFIX, controller='search',) |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
307 rmap.connect('search_repo', '%s/search/{search_repo:.*}' % ADMIN_PREFIX, |
1211 | 308 controller='search') |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
309 |
474
a3d9d24acbec
Implemented password reset(forms/models/ tasks) and mailing tasks.
Marcin Kuzminski <marcin@python-works.com>
parents:
466
diff
changeset
|
310 #LOGIN/LOGOUT/REGISTER/SIGN IN |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
311 rmap.connect('login_home', '%s/login' % ADMIN_PREFIX, controller='login') |
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
312 rmap.connect('logout_home', '%s/logout' % ADMIN_PREFIX, controller='login', |
1211 | 313 action='logout') |
314 | |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
315 rmap.connect('register', '%s/register' % ADMIN_PREFIX, controller='login', |
1211 | 316 action='register') |
317 | |
1333
74aae890d33e
refactor of routing to use one common prefix for admin, this way it's easier to change
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
318 rmap.connect('reset_password', '%s/password_reset' % ADMIN_PREFIX, |
1211 | 319 controller='login', action='password_reset') |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
320 |
1417
5875955def39
fixes #223 improve password reset form
Marcin Kuzminski <marcin@python-works.com>
parents:
1348
diff
changeset
|
321 rmap.connect('reset_password_confirmation', |
5875955def39
fixes #223 improve password reset form
Marcin Kuzminski <marcin@python-works.com>
parents:
1348
diff
changeset
|
322 '%s/password_reset_confirmation' % ADMIN_PREFIX, |
5875955def39
fixes #223 improve password reset form
Marcin Kuzminski <marcin@python-works.com>
parents:
1348
diff
changeset
|
323 controller='login', action='password_reset_confirmation') |
5875955def39
fixes #223 improve password reset form
Marcin Kuzminski <marcin@python-works.com>
parents:
1348
diff
changeset
|
324 |
205
66b20f525750
Added feed controllers, urls,and changed index page to use them.
Marcin Kuzminski <marcin@python-works.com>
parents:
181
diff
changeset
|
325 #FEEDS |
1211 | 326 rmap.connect('rss_feed_home', '/{repo_name:.*}/feed/rss', |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
327 controller='feed', action='rss', |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
328 conditions=dict(function=check_repo)) |
1211 | 329 |
330 rmap.connect('atom_feed_home', '/{repo_name:.*}/feed/atom', | |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
331 controller='feed', action='atom', |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
332 conditions=dict(function=check_repo)) |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
333 |
1279
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1271
diff
changeset
|
334 #========================================================================== |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1271
diff
changeset
|
335 # REPOSITORY ROUTES |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1271
diff
changeset
|
336 #========================================================================== |
1505
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
337 rmap.connect('summary_home', '/{repo_name:.*}', |
1538
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
338 controller='summary', |
1505
bb6ba7442293
Fixed methods for checking if path in routes is a repo
Marcin Kuzminski <marcin@python-works.com>
parents:
1483
diff
changeset
|
339 conditions=dict(function=check_repo)) |
1538
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
340 |
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
341 rmap.connect('repos_group_home', '/{group_name:.*}', |
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
342 controller='admin/repos_groups', action="show_by_name", |
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
343 conditions=dict(function=check_group)) |
27be8f94c207
implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents:
1507
diff
changeset
|
344 |
1211 | 345 rmap.connect('changeset_home', '/{repo_name:.*}/changeset/{revision}', |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
346 controller='changeset', revision='tip', |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
347 conditions=dict(function=check_repo)) |
1211 | 348 |
1670
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
349 rmap.connect('changeset_comment', '/{repo_name:.*}/changeset/{revision}/comment', |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
350 controller='changeset', revision='tip', action='comment', |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
351 conditions=dict(function=check_repo)) |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
352 |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
353 rmap.connect('changeset_comment_delete', '/{repo_name:.*}/changeset/comment/{comment_id}/delete', |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
354 controller='changeset', action='delete_comment', |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
355 conditions=dict(function=check_repo)) |
d2de0c2f02cd
#77 code review
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
356 |
1211 | 357 rmap.connect('raw_changeset_home', |
358 '/{repo_name:.*}/raw-changeset/{revision}', | |
359 controller='changeset', action='raw_changeset', | |
360 revision='tip', conditions=dict(function=check_repo)) | |
361 | |
362 rmap.connect('summary_home', '/{repo_name:.*}/summary', | |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
363 controller='summary', conditions=dict(function=check_repo)) |
1211 | 364 |
365 rmap.connect('shortlog_home', '/{repo_name:.*}/shortlog', | |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
366 controller='shortlog', conditions=dict(function=check_repo)) |
1211 | 367 |
368 rmap.connect('branches_home', '/{repo_name:.*}/branches', | |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
369 controller='branches', conditions=dict(function=check_repo)) |
1211 | 370 |
371 rmap.connect('tags_home', '/{repo_name:.*}/tags', | |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
372 controller='tags', conditions=dict(function=check_repo)) |
1211 | 373 |
374 rmap.connect('changelog_home', '/{repo_name:.*}/changelog', | |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
375 controller='changelog', conditions=dict(function=check_repo)) |
1211 | 376 |
1431
d5d7c40e8591
changelog uses lazy loading of affected files details, in some scenarios this can improve speed
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
377 rmap.connect('changelog_details', '/{repo_name:.*}/changelog_details/{cs}', |
d5d7c40e8591
changelog uses lazy loading of affected files details, in some scenarios this can improve speed
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
378 controller='changelog', action='changelog_details', |
d5d7c40e8591
changelog uses lazy loading of affected files details, in some scenarios this can improve speed
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
379 conditions=dict(function=check_repo)) |
d5d7c40e8591
changelog uses lazy loading of affected files details, in some scenarios this can improve speed
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
380 |
1211 | 381 rmap.connect('files_home', '/{repo_name:.*}/files/{revision}/{f_path:.*}', |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
382 controller='files', revision='tip', f_path='', |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
383 conditions=dict(function=check_repo)) |
1211 | 384 |
385 rmap.connect('files_diff_home', '/{repo_name:.*}/diff/{f_path:.*}', | |
300
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
386 controller='files', action='diff', revision='tip', f_path='', |
8f7b8e965fe4
fixed 404s added extra validator for magic repo_name path in routes
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
387 conditions=dict(function=check_repo)) |
1211 | 388 |
389 rmap.connect('files_rawfile_home', | |
390 '/{repo_name:.*}/rawfile/{revision}/{f_path:.*}', | |
391 controller='files', action='rawfile', revision='tip', | |
392 f_path='', conditions=dict(function=check_repo)) | |
393 | |
394 rmap.connect('files_raw_home', | |
395 '/{repo_name:.*}/raw/{revision}/{f_path:.*}', | |
396 controller='files', action='raw', revision='tip', f_path='', | |
397 conditions=dict(function=check_repo)) | |
398 | |
399 rmap.connect('files_annotate_home', | |
400 '/{repo_name:.*}/annotate/{revision}/{f_path:.*}', | |
401 controller='files', action='annotate', revision='tip', | |
402 f_path='', conditions=dict(function=check_repo)) | |
403 | |
1305
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
404 rmap.connect('files_edit_home', |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
405 '/{repo_name:.*}/edit/{revision}/{f_path:.*}', |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
406 controller='files', action='edit', revision='tip', |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
407 f_path='', conditions=dict(function=check_repo)) |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
408 |
1483
7b67b0dcad6d
Added initial support for creating new nodes in repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1452
diff
changeset
|
409 rmap.connect('files_add_home', |
7b67b0dcad6d
Added initial support for creating new nodes in repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1452
diff
changeset
|
410 '/{repo_name:.*}/add/{revision}/{f_path:.*}', |
7b67b0dcad6d
Added initial support for creating new nodes in repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1452
diff
changeset
|
411 controller='files', action='add', revision='tip', |
7b67b0dcad6d
Added initial support for creating new nodes in repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1452
diff
changeset
|
412 f_path='', conditions=dict(function=check_repo)) |
7b67b0dcad6d
Added initial support for creating new nodes in repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1452
diff
changeset
|
413 |
1211 | 414 rmap.connect('files_archive_home', '/{repo_name:.*}/archive/{fname}', |
872
b956e6f415a2
implemented #91,
Marcin Kuzminski <marcin@python-works.com>
parents:
769
diff
changeset
|
415 controller='files', action='archivefile', |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
416 conditions=dict(function=check_repo)) |
1211 | 417 |
1452
8585fbf3ed06
Implemented #111 copy github node finder solution
Marcin Kuzminski <marcin@python-works.com>
parents:
1445
diff
changeset
|
418 rmap.connect('files_nodelist_home', |
8585fbf3ed06
Implemented #111 copy github node finder solution
Marcin Kuzminski <marcin@python-works.com>
parents:
1445
diff
changeset
|
419 '/{repo_name:.*}/nodelist/{revision}/{f_path:.*}', |
8585fbf3ed06
Implemented #111 copy github node finder solution
Marcin Kuzminski <marcin@python-works.com>
parents:
1445
diff
changeset
|
420 controller='files', action='nodelist', |
8585fbf3ed06
Implemented #111 copy github node finder solution
Marcin Kuzminski <marcin@python-works.com>
parents:
1445
diff
changeset
|
421 conditions=dict(function=check_repo)) |
8585fbf3ed06
Implemented #111 copy github node finder solution
Marcin Kuzminski <marcin@python-works.com>
parents:
1445
diff
changeset
|
422 |
1211 | 423 rmap.connect('repo_settings_delete', '/{repo_name:.*}/settings', |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
485
diff
changeset
|
424 controller='settings', action="delete", |
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
485
diff
changeset
|
425 conditions=dict(method=["DELETE"], function=check_repo)) |
1211 | 426 |
427 rmap.connect('repo_settings_update', '/{repo_name:.*}/settings', | |
320
05b212954275
Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
306
diff
changeset
|
428 controller='settings', action="update", |
05b212954275
Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
306
diff
changeset
|
429 conditions=dict(method=["PUT"], function=check_repo)) |
1211 | 430 |
431 rmap.connect('repo_settings_home', '/{repo_name:.*}/settings', | |
320
05b212954275
Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
306
diff
changeset
|
432 controller='settings', action='index', |
05b212954275
Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
306
diff
changeset
|
433 conditions=dict(function=check_repo)) |
05b212954275
Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
Marcin Kuzminski <marcin@python-works.com>
parents:
306
diff
changeset
|
434 |
1211 | 435 rmap.connect('repo_fork_create_home', '/{repo_name:.*}/fork', |
530
a08f610e545e
Implemented server side forks
Marcin Kuzminski <marcin@python-works.com>
parents:
525
diff
changeset
|
436 controller='settings', action='fork_create', |
a08f610e545e
Implemented server side forks
Marcin Kuzminski <marcin@python-works.com>
parents:
525
diff
changeset
|
437 conditions=dict(function=check_repo, method=["POST"])) |
1211 | 438 |
439 rmap.connect('repo_fork_home', '/{repo_name:.*}/fork', | |
525
87d80c84df09
added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents:
485
diff
changeset
|
440 controller='settings', action='fork', |
530
a08f610e545e
Implemented server side forks
Marcin Kuzminski <marcin@python-works.com>
parents:
525
diff
changeset
|
441 conditions=dict(function=check_repo)) |
604
5cc96df705b9
fixed @repo into :repo for docs
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
442 |
1279
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1271
diff
changeset
|
443 rmap.connect('repo_followers_home', '/{repo_name:.*}/followers', |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1271
diff
changeset
|
444 controller='followers', action='followers', |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1271
diff
changeset
|
445 conditions=dict(function=check_repo)) |
1301
7e75af301842
Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
1279
diff
changeset
|
446 |
7e75af301842
Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
1279
diff
changeset
|
447 rmap.connect('repo_forks_home', '/{repo_name:.*}/forks', |
7e75af301842
Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
1279
diff
changeset
|
448 controller='forks', action='forks', |
7e75af301842
Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
1279
diff
changeset
|
449 conditions=dict(function=check_repo)) |
1445
c78f6bf52e9c
Beginning of API implementation for rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
1431
diff
changeset
|
450 |
1211 | 451 return rmap |