summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-07 11:53:11 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-07 12:01:12 +1200
commit15d1253f79e081c1f6223d8e95ccc50acff27734 (patch)
tree93805805899b4df9a93927c9d915d1ce186fbd03
parentfd0079d5c92beeb00cb1654dc8b7674a9aadbe88 (diff)
downloadopenembedded-core-contrib-15d1253f79e081c1f6223d8e95ccc50acff27734.tar.gz
openembedded-core-contrib-15d1253f79e081c1f6223d8e95ccc50acff27734.tar.bz2
openembedded-core-contrib-15d1253f79e081c1f6223d8e95ccc50acff27734.zip
Drop old raw recipe export code
We're about to replace this with a proper CSV export function, so we don't need this dead code hanging around anymore. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--layerindex/urls.py8
-rw-r--r--layerindex/urls_branch.py2
-rw-r--r--layerindex/views.py7
-rw-r--r--templates/layerindex/rawrecipes.txt2
4 files changed, 2 insertions, 17 deletions
diff --git a/layerindex/urls.py b/layerindex/urls.py
index b0b74314d3..f80606fc2d 100644
--- a/layerindex/urls.py
+++ b/layerindex/urls.py
@@ -8,7 +8,7 @@ from django.conf.urls import *
from django.views.generic import TemplateView, DetailView, ListView, RedirectView
from django.views.defaults import page_not_found
from django.core.urlresolvers import reverse_lazy
-from layerindex.views import LayerListView, LayerReviewListView, LayerReviewDetailView, RecipeSearchView, MachineSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, HistoryListView, EditProfileFormView, AdvancedRecipeSearchView, BulkChangeView, BulkChangeSearchView, bulk_change_edit_view, bulk_change_patch_view, BulkChangeDeleteView, RecipeDetailView, RedirectParamsView, ClassicRecipeSearchView, ClassicRecipeDetailView, ClassicRecipeStatsView, LayerUpdateDetailView, UpdateListView, UpdateDetailView, StatsView, publish_view
+from layerindex.views import LayerListView, LayerReviewListView, LayerReviewDetailView, RecipeSearchView, MachineSearchView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, HistoryListView, EditProfileFormView, AdvancedRecipeSearchView, BulkChangeView, BulkChangeSearchView, bulk_change_edit_view, bulk_change_patch_view, BulkChangeDeleteView, RecipeDetailView, RedirectParamsView, ClassicRecipeSearchView, ClassicRecipeDetailView, ClassicRecipeStatsView, LayerUpdateDetailView, UpdateListView, UpdateDetailView, StatsView, publish_view
from layerindex.models import LayerItem, Recipe, RecipeChangeset
from rest_framework import routers
from . import restviews
@@ -101,12 +101,6 @@ urlpatterns = [
name="bulk_change_delete"),
url(r'^branch/(?P<branch>[-\w]+)/',
include('layerindex.urls_branch')),
- #url(r'^raw/recipes.txt$',
- # PlainTextListView.as_view(
- # queryset=Recipe.objects.order_by('pn', 'layerbranch__layer'),
- # context_object_name='recipe_list',
- # template_name='layerindex/rawrecipes.txt'),
- # name='recipe_list_raw'),
url(r'^updates/$',
UpdateListView.as_view(
template_name='layerindex/updatelist.html'),
diff --git a/layerindex/urls_branch.py b/layerindex/urls_branch.py
index a71af1cea8..0e41435e76 100644
--- a/layerindex/urls_branch.py
+++ b/layerindex/urls_branch.py
@@ -7,7 +7,7 @@
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, ClassSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, RedirectParamsView, DuplicatesView, LayerUpdateDetailView
+from layerindex.views import LayerListView, RecipeSearchView, MachineSearchView, DistroSearchView, ClassSearchView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, RedirectParamsView, DuplicatesView, LayerUpdateDetailView
urlpatterns = [
url(r'^$',
diff --git a/layerindex/views.py b/layerindex/views.py
index cedc5b0009..0b3345a007 100644
--- a/layerindex/views.py
+++ b/layerindex/views.py
@@ -774,13 +774,6 @@ class ClassSearchView(ListView):
context['this_url_name'] = resolve(self.request.path_info).url_name
return context
-class PlainTextListView(ListView):
- def render_to_response(self, context):
- "Returns a plain text response rendering of the template"
- template = get_template(self.template_name)
- return HttpResponse(template.render(context),
- content_type='text/plain')
-
class HistoryListView(ListView):
context_object_name = "revisions"
paginate_by = 50
diff --git a/templates/layerindex/rawrecipes.txt b/templates/layerindex/rawrecipes.txt
deleted file mode 100644
index c1911c9c97..0000000000
--- a/templates/layerindex/rawrecipes.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-{% for recipe in recipe_list %}{{ recipe.layerbranch.layer.name }} {{ recipe.pn }} {{ recipe.pv }} {{ recipe.full_path }}
-{% endfor %}