Mercurial > kallithea
comparison rhodecode/config/routing.py @ 3298:b38230cf8710 beta
add condition check for old search url in admin
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Feb 2013 01:21:12 +0100 |
parents | 666fc6ac9ce5 |
children | 72a91632b731 |
comparison
equal
deleted
inserted
replaced
3297:a66198aa9e84 | 3298:b38230cf8710 |
---|---|
388 conditions=dict(method=["POST"])) | 388 conditions=dict(method=["POST"])) |
389 | 389 |
390 #SEARCH | 390 #SEARCH |
391 rmap.connect('search', '%s/search' % ADMIN_PREFIX, controller='search',) | 391 rmap.connect('search', '%s/search' % ADMIN_PREFIX, controller='search',) |
392 rmap.connect('search_repo_admin', '%s/search/{repo_name:.*}' % ADMIN_PREFIX, | 392 rmap.connect('search_repo_admin', '%s/search/{repo_name:.*}' % ADMIN_PREFIX, |
393 controller='search') | 393 controller='search', |
394 conditions=dict(function=check_repo)) | |
394 rmap.connect('search_repo', '/{repo_name:.*?}/search', | 395 rmap.connect('search_repo', '/{repo_name:.*?}/search', |
395 controller='search', | 396 controller='search', |
396 conditions=dict(function=check_repo), | 397 conditions=dict(function=check_repo), |
397 ) | 398 ) |
398 | 399 |