aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/urls.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-07-28 18:40:07 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-05 00:31:22 +0100
commitc3a8eb4d825e6a2f2acfeb0ee9e0ae8b1fa532f7 (patch)
tree7df61f818228017c9a43a66f5d547151994a86a4 /layerindex/urls.py
parente8d734a3773f7cf6b21510fa86d53782e321d0a7 (diff)
downloadopenembedded-core-contrib-c3a8eb4d825e6a2f2acfeb0ee9e0ae8b1fa532f7.tar.gz
Add support for importing OE-Classic recipes
Add a script for doing a one-time import of OE-Classic recipe information, so comparisons against OE-Core can be performed; this is stored using a new ClassicRecipe model supporting additional fields for tracking migration status. The migration status fields can be updated as well as viewed and summarised in graph format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/urls.py')
-rw-r--r--layerindex/urls.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/layerindex/urls.py b/layerindex/urls.py
index 399e4a6d4e..6915a090fd 100644
--- a/layerindex/urls.py
+++ b/layerindex/urls.py
@@ -7,7 +7,7 @@
from django.conf.urls.defaults import *
from django.views.generic import TemplateView, DetailView, ListView
from django.views.defaults import page_not_found
-from layerindex.views import LayerListView, LayerReviewListView, LayerReviewDetailView, RecipeSearchView, MachineSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, switch_branch_view, HistoryListView, EditProfileFormView, DuplicatesView, AdvancedRecipeSearchView, BulkChangeView, BulkChangeSearchView, bulk_change_edit_view, bulk_change_patch_view, BulkChangeDeleteView, RecipeDetailView
+from layerindex.views import LayerListView, LayerReviewListView, LayerReviewDetailView, RecipeSearchView, MachineSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, switch_branch_view, HistoryListView, EditProfileFormView, DuplicatesView, AdvancedRecipeSearchView, BulkChangeView, BulkChangeSearchView, bulk_change_edit_view, bulk_change_patch_view, BulkChangeDeleteView, RecipeDetailView, ClassicRecipeSearchView, ClassicRecipeDetailView, ClassicRecipeStatsView
from layerindex.models import LayerItem, Recipe, RecipeChangeset
urlpatterns = patterns('',
@@ -104,5 +104,20 @@ urlpatterns = patterns('',
TemplateView.as_view(
template_name='layerindex/about.html'),
name="about"),
+ url(r'^oe-classic/$',
+ redirect_to, {'url' : reverse_lazy('classic_recipe_search')},
+ name='classic'),
+ url(r'^oe-classic/recipes/$',
+ ClassicRecipeSearchView.as_view(
+ template_name='layerindex/classicrecipes.html'),
+ name='classic_recipe_search'),
+ url(r'^oe-classic/stats/$',
+ ClassicRecipeStatsView.as_view(
+ template_name='layerindex/classicstats.html'),
+ name='classic_recipe_stats'),
+ url(r'^oe-classic/recipe/(?P<pk>[-\w]+)/$',
+ ClassicRecipeDetailView.as_view(
+ template_name='layerindex/classicrecipedetail.html'),
+ name='classic_recipe'),
url(r'.*', page_not_found)
)