mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
layerindex/urls.py: Allow branches with a '.' in the name
Without this change the system will fail parsing various URL components Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
fb322c963b
commit
912da8fbd5
|
@ -107,7 +107,7 @@ urlpatterns = [
|
||||||
BulkChangeDeleteView.as_view(
|
BulkChangeDeleteView.as_view(
|
||||||
template_name='layerindex/deleteconfirm.html'),
|
template_name='layerindex/deleteconfirm.html'),
|
||||||
name="bulk_change_delete"),
|
name="bulk_change_delete"),
|
||||||
url(r'^branch/(?P<branch>[-\w]+)/',
|
url(r'^branch/(?P<branch>[-.\w]+)/',
|
||||||
include('layerindex.urls_branch')),
|
include('layerindex.urls_branch')),
|
||||||
url(r'^updates/$',
|
url(r'^updates/$',
|
||||||
UpdateListView.as_view(
|
UpdateListView.as_view(
|
||||||
|
@ -146,17 +146,17 @@ urlpatterns = [
|
||||||
ClassicRecipeDetailView.as_view(
|
ClassicRecipeDetailView.as_view(
|
||||||
template_name='layerindex/classicrecipedetail.html'),
|
template_name='layerindex/classicrecipedetail.html'),
|
||||||
name='classic_recipe'),
|
name='classic_recipe'),
|
||||||
url(r'^comparison/recipes/(?P<branch>[-\w]+)/$',
|
url(r'^comparison/recipes/(?P<branch>[-.\w]+)/$',
|
||||||
ClassicRecipeSearchView.as_view(
|
ClassicRecipeSearchView.as_view(
|
||||||
template_name='layerindex/classicrecipes.html'),
|
template_name='layerindex/classicrecipes.html'),
|
||||||
name='comparison_recipe_search'),
|
name='comparison_recipe_search'),
|
||||||
url(r'^comparison/search-csv/(?P<branch>[-\w]+)/$',
|
url(r'^comparison/search-csv/(?P<branch>[-.\w]+)/$',
|
||||||
ClassicRecipeSearchView.as_view(
|
ClassicRecipeSearchView.as_view(
|
||||||
template_name='layerindex/classicrecipes_csv.txt',
|
template_name='layerindex/classicrecipes_csv.txt',
|
||||||
paginate_by=0,
|
paginate_by=0,
|
||||||
content_type='text/csv'),
|
content_type='text/csv'),
|
||||||
name='comparison_recipe_search_csv'),
|
name='comparison_recipe_search_csv'),
|
||||||
url(r'^comparison/stats/(?P<branch>[-\w]+)/$',
|
url(r'^comparison/stats/(?P<branch>[-.\w]+)/$',
|
||||||
ClassicRecipeStatsView.as_view(
|
ClassicRecipeStatsView.as_view(
|
||||||
template_name='layerindex/classicstats.html'),
|
template_name='layerindex/classicstats.html'),
|
||||||
name='comparison_recipe_stats'),
|
name='comparison_recipe_stats'),
|
||||||
|
@ -185,11 +185,11 @@ urlpatterns = [
|
||||||
url(r'^stoptask/(?P<task_id>[-\w]+)/$',
|
url(r'^stoptask/(?P<task_id>[-\w]+)/$',
|
||||||
task_stop_view,
|
task_stop_view,
|
||||||
name='task_stop'),
|
name='task_stop'),
|
||||||
url(r'^ajax/layerchecklist/(?P<branch>[-\w]+)/$',
|
url(r'^ajax/layerchecklist/(?P<branch>[-.\w]+)/$',
|
||||||
LayerCheckListView.as_view(
|
LayerCheckListView.as_view(
|
||||||
template_name='layerindex/layerchecklist.html'),
|
template_name='layerindex/layerchecklist.html'),
|
||||||
name='layer_checklist'),
|
name='layer_checklist'),
|
||||||
url(r'^ajax/classchecklist/(?P<branch>[-\w]+)/$',
|
url(r'^ajax/classchecklist/(?P<branch>[-.\w]+)/$',
|
||||||
BBClassCheckListView.as_view(
|
BBClassCheckListView.as_view(
|
||||||
template_name='layerindex/classchecklist.html'),
|
template_name='layerindex/classchecklist.html'),
|
||||||
name='class_checklist'),
|
name='class_checklist'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user