comparison rhodecode/config/routing.py @ 2241:b2a2868d7bec codereview

Basic compare-view controller with ref parsing
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 06 May 2012 19:24:50 +0200
parents ee07357d9265
children 77e376fdc4c6
comparison
equal deleted inserted replaced
2240:87664e60bbc0 2241:b2a2868d7bec
410 rmap.connect('raw_changeset_home', 410 rmap.connect('raw_changeset_home',
411 '/{repo_name:.*}/raw-changeset/{revision}', 411 '/{repo_name:.*}/raw-changeset/{revision}',
412 controller='changeset', action='raw_changeset', 412 controller='changeset', action='raw_changeset',
413 revision='tip', conditions=dict(function=check_repo)) 413 revision='tip', conditions=dict(function=check_repo))
414 414
415 rmap.connect('compare_home',
416 '/{repo_name:.*}/compare/{ref:.*}',
417 controller='compare', action='index',
418 conditions=dict(function=check_repo))
419
415 rmap.connect('summary_home', '/{repo_name:.*}/summary', 420 rmap.connect('summary_home', '/{repo_name:.*}/summary',
416 controller='summary', conditions=dict(function=check_repo)) 421 controller='summary', conditions=dict(function=check_repo))
417 422
418 rmap.connect('shortlog_home', '/{repo_name:.*}/shortlog', 423 rmap.connect('shortlog_home', '/{repo_name:.*}/shortlog',
419 controller='shortlog', conditions=dict(function=check_repo)) 424 controller='shortlog', conditions=dict(function=check_repo))