router.register(r'layerNotes', restviews.LayerNoteViewSet) router.register(r'recipes', restviews.RecipeViewSet) router.register(r'machines', restviews.MachineViewSet) router.register(r'distros', restviews.DistroViewSet) router.register(r'classes', restviews.ClassViewSet) router.register(r'layers', restviews.LayerViewSet, 'layers') urlpatterns = [ # FIXME: REST API disabled for now #url(r'^api/', include(router.urls)), url( r'^layers/$', RedirectView.as_view(url=reverse_lazy('layer_list', args=('master', )), permanent=False)), url(r'^layer/(?P<slug>[-\w]+)/$', RedirectParamsView.as_view(permanent=False), { 'redirect_name': 'layer_item', 'branch': 'master' }), url( r'^recipes/$', RedirectView.as_view(url=reverse_lazy('recipe_search', args=('master', )), permanent=False)), url( r'^machines/$', RedirectView.as_view(url=reverse_lazy('machine_search', args=('master', )), permanent=False)), url( r'^distros/$',
router.register(r'layerDependencies', restviews.LayerDependencyViewSet) router.register(r'recipes', restviews.RecipeViewSet) router.register(r'machines', restviews.MachineViewSet) router.register(r'distros', restviews.DistroViewSet) urlpatterns = patterns('', url(r'^$', RedirectView.as_view(url=reverse_lazy('layer_list', args=('master',)), permanent=False), name='frontpage'), url(r'^api/', include(router.urls)), url(r'^layers/$', RedirectView.as_view(url=reverse_lazy('layer_list', args=('master',)), permanent=False)), url(r'^layer/(?P<slug>[-\w]+)/$', RedirectParamsView.as_view(permanent=False), {'redirect_name': 'layer_item', 'branch':'master'}), url(r'^recipes/$', RedirectView.as_view(url=reverse_lazy('recipe_search', args=('master',)), permanent=False)), url(r'^machines/$', RedirectView.as_view(url=reverse_lazy('machine_search', args=('master',)), permanent=False)), url(r'^distros/$', RedirectView.as_view(url=reverse_lazy('distro_search', args=('master',)), permanent=False)), url(r'^submit/$', edit_layer_view, {'template_name': 'layerindex/submitlayer.html'}, name="submit_layer"), url(r'^submit/thanks$', TemplateView.as_view( template_name='layerindex/submitthanks.html'), name="submit_layer_thanks"), url(r'^review/$', LayerReviewListView.as_view( template_name='layerindex/reviewlist.html'),
# layerindex-web - Branch-based URL definitions # # Copyright (C) 2013-2016 Intel Corporation # # Licensed under the MIT license, see COPYING.MIT for details from django.conf.urls import * from django.views.defaults import page_not_found from django.core.urlresolvers import reverse_lazy from layerindex.views import LayerListView, RecipeSearchView, MachineSearchView, DistroSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, RedirectParamsView, DuplicatesView, LayerUpdateDetailView urlpatterns = patterns( '', url(r'^$', RedirectParamsView.as_view(permanent=False), {'redirect_name': 'layer_list'}), url(r'^layers/$', LayerListView.as_view(template_name='layerindex/layers.html'), name='layer_list'), url(r'^layer/(?P<slug>[-\w]+)/$', LayerDetailView.as_view(template_name='layerindex/detail.html'), name='layer_item'), url(r'^recipes/$', RecipeSearchView.as_view(template_name='layerindex/recipes.html'), name='recipe_search'), url(r'^machines/$', MachineSearchView.as_view(template_name='layerindex/machines.html'), name='machine_search'), url(r'^distros/$', DistroSearchView.as_view(template_name='layerindex/distros.html'), name='distro_search'), url(r'^edit/(?P<slug>[-\w]+)/$',
# layerindex-web - Branch-based URL definitions # # Copyright (C) 2013 Intel Corporation # # Licensed under the MIT license, see COPYING.MIT for details from django.conf.urls.defaults import * from django.views.generic.simple import redirect_to from django.views.defaults import page_not_found from django.core.urlresolvers import reverse_lazy from layerindex.views import LayerListView, RecipeSearchView, MachineSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, RedirectParamsView, DuplicatesView urlpatterns = patterns('', url(r'^$', RedirectParamsView.as_view(), {'redirect_name': 'layer_list'}), url(r'^layers/$', LayerListView.as_view( template_name='layerindex/layers.html'), name='layer_list'), url(r'^layer/(?P<slug>[-\w]+)/$', LayerDetailView.as_view( template_name='layerindex/detail.html'), name='layer_item'), url(r'^recipes/$', RecipeSearchView.as_view( template_name='layerindex/recipes.html'), name='recipe_search'), url(r'^machines/$', MachineSearchView.as_view( template_name='layerindex/machines.html'), name='machine_search'),