aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-05-08 17:33:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-12 12:14:13 +0100
commit3c4f3775f73e9a85949d5ad59f15e2df790020fa (patch)
tree3d1fdf9f85331d4a28eebcf31d0ec0b8a0b34919
parente7f4d9c8e1cf578819c5042826d57b5a9222f7a1 (diff)
downloadopenembedded-core-contrib-3c4f3775f73e9a85949d5ad59f15e2df790020fa.tar.gz
bitbake: toastergui: removing unused views
We remove url entries, views and templates that are not used in the interface; these are leftovers from the development process, and are not linked anywhere in the interface nor mentioned in documentation. (Bitbake rev: 96bdebaa1aa43a35dc0747eda3081e7cf1a3dbde) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layer.html34
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package.html36
-rw-r--r--bitbake/lib/toaster/toastergui/urls.py5
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py29
4 files changed, 0 insertions, 104 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layer.html b/bitbake/lib/toaster/toastergui/templates/layer.html
deleted file mode 100644
index 410d766c60..0000000000
--- a/bitbake/lib/toaster/toastergui/templates/layer.html
+++ /dev/null
@@ -1,34 +0,0 @@
-{% extends "basetable.html" %}
-
-{% block pagename %}
- <h1>Toaster - Layers</h1>
-{% endblock %}
-
-{% block pagetable %}
- {% load projecttags %}
-
- <tr>
- <th>Name</th>
- <th>Local Path</th>
- <th>Layer Index URL</th>
- <th>Known Versions</th>
- </tr>
-
- {% for layer in objects %}
-
- <tr class="data">
- <td>{{layer.name}}</td>
- <td>{{layer.local_path}}</td>
- <td><a href='{{layer.layer_index_url}}'>{{layer.layer_index_url}}</a></td>
- <td><table>
- {% for lv in layer.versions %}
- <tr><td>
- <a href="{% url "layer_versions_recipes" lv.id %}">({{lv.priority}}){{lv.branch}}:{{lv.commit}} ({{lv.count}} recipes)</a>
- </td></tr>
- {% endfor %}
- </table></td>
- </tr>
-
- {% endfor %}
-
-{% endblock %}
diff --git a/bitbake/lib/toaster/toastergui/templates/package.html b/bitbake/lib/toaster/toastergui/templates/package.html
deleted file mode 100644
index 1ba372608d..0000000000
--- a/bitbake/lib/toaster/toastergui/templates/package.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends "basebuildpage.html" %}
-
-{% block pagetable %}
- {% if not objects %}
- <p>No packages were recorded for this target!</p>
- {% else %}
-
- <tr>
- <th>Name</th>
- <th>Version</th>
- <th>Size (Bytes)</th>
- <th>Recipe</th>
- <th>Depends on</th>
- </tr>
-
- {% for package in objects %}
-
- <tr class="data">
- <td><a name="#{{package.name}}">{{package.name}}</a></td>
- <td>{{package.version}}</td>
- <td>{{package.size}}</td>
- <td>{%if package.recipe %}<a name="{{package.recipe.name}}.{{package.package_name}}">
- <a href="{% url "layer_versions_recipes" package.recipe.layer_version_id %}#{{package.recipe.name}}">{{package.recipe.name}}</a>{{package.package_name}}</a>{%endif%}</td>
- <td>
- <div style="height: 4em; overflow:auto">
- {% for d in package.package_dependencies_source.all %}
- <a href="#{{d.name}}">{{d.depends_on.name}}</a><br/>
- {% endfor %}
- </div>
- </td>
-
- {% endfor %}
-
- {% endif %}
-
-{% endblock %}
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py
index 52fc0cc0ed..de8c62cd62 100644
--- a/bitbake/lib/toaster/toastergui/urls.py
+++ b/bitbake/lib/toaster/toastergui/urls.py
@@ -56,7 +56,6 @@ urlpatterns = patterns('toastergui.views',
url(r'^dentries/build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', 'dirinfo_ajax', name='dirinfo_ajax'),
url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo$', 'dirinfo', name='dirinfo'),
url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo_filepath/_(?P<file_path>(?:/[^/\n]+)*)$', 'dirinfo', name='dirinfo_filepath'),
- url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packages$', 'tpackage', name='targetpackages'),
url(r'^build/(?P<build_id>\d+)/configuration$', 'configuration', name='configuration'),
url(r'^build/(?P<build_id>\d+)/configvars$', 'configvars', name='configvars'),
url(r'^build/(?P<build_id>\d+)/buildtime$', 'buildtime', name='buildtime'),
@@ -67,13 +66,9 @@ urlpatterns = patterns('toastergui.views',
url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packagefile/(?P<packagefile_id>\d+)$',
'image_information_dir', name='image_information_dir'),
-
# build download artifact
url(r'^build/(?P<build_id>\d+)/artifact/(?P<artifact_type>\w+)/id/(?P<artifact_id>\w+)', 'build_artifact', name="build_artifact"),
- # urls not linked from the dashboard
- url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'),
-
# project URLs
url(r'^newproject/$', 'newproject', name='newproject'),
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 23025a2a19..d938fd8280 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -1479,35 +1479,6 @@ def bfile(request, build_id, package_id):
context = {'build': Build.objects.get(pk=build_id), 'objects' : files}
return render(request, template, context)
-def tpackage(request, build_id, target_id):
- template = 'package.html'
- packages = map(lambda x: x.package, list(Target_Installed_Package.objects.filter(target=target_id)))
- context = {'build': Build.objects.get(pk=build_id), 'objects' : packages}
- return render(request, template, context)
-
-def layer(request):
- template = 'layer.html'
- layer_info = Layer.objects.all()
-
- for li in layer_info:
- li.versions = Layer_Version.objects.filter(layer = li)
- for liv in li.versions:
- liv.count = Recipe.objects.filter(layer_version__id = liv.id).count()
-
- context = {'objects': layer_info}
-
- return render(request, template, context)
-
-
-def layer_versions_recipes(request, layerversion_id):
- template = 'recipe.html'
- recipes = Recipe.objects.filter(layer_version__id = layerversion_id)
-
- context = {'objects': recipes,
- 'layer_version' : Layer_Version.objects.get( id = layerversion_id )
- }
-
- return render(request, template, context)
# A set of dependency types valid for both included and built package views
OTHER_DEPENDS_BASE = [