diff options
| author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-05-08 17:33:21 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-12 12:14:13 +0100 |
| commit | 3c4f3775f73e9a85949d5ad59f15e2df790020fa (patch) | |
| tree | 3d1fdf9f85331d4a28eebcf31d0ec0b8a0b34919 /bitbake/lib/toaster/toastergui/views.py | |
| parent | e7f4d9c8e1cf578819c5042826d57b5a9222f7a1 (diff) | |
| download | poky-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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
| -rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 29 |
1 files changed, 0 insertions, 29 deletions
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): | |||
| 1479 | context = {'build': Build.objects.get(pk=build_id), 'objects' : files} | 1479 | context = {'build': Build.objects.get(pk=build_id), 'objects' : files} |
| 1480 | return render(request, template, context) | 1480 | return render(request, template, context) |
| 1481 | 1481 | ||
| 1482 | def tpackage(request, build_id, target_id): | ||
| 1483 | template = 'package.html' | ||
| 1484 | packages = map(lambda x: x.package, list(Target_Installed_Package.objects.filter(target=target_id))) | ||
| 1485 | context = {'build': Build.objects.get(pk=build_id), 'objects' : packages} | ||
| 1486 | return render(request, template, context) | ||
| 1487 | |||
| 1488 | def layer(request): | ||
| 1489 | template = 'layer.html' | ||
| 1490 | layer_info = Layer.objects.all() | ||
| 1491 | |||
| 1492 | for li in layer_info: | ||
| 1493 | li.versions = Layer_Version.objects.filter(layer = li) | ||
| 1494 | for liv in li.versions: | ||
| 1495 | liv.count = Recipe.objects.filter(layer_version__id = liv.id).count() | ||
| 1496 | |||
| 1497 | context = {'objects': layer_info} | ||
| 1498 | |||
| 1499 | return render(request, template, context) | ||
| 1500 | |||
| 1501 | |||
| 1502 | def layer_versions_recipes(request, layerversion_id): | ||
| 1503 | template = 'recipe.html' | ||
| 1504 | recipes = Recipe.objects.filter(layer_version__id = layerversion_id) | ||
| 1505 | |||
| 1506 | context = {'objects': recipes, | ||
| 1507 | 'layer_version' : Layer_Version.objects.get( id = layerversion_id ) | ||
| 1508 | } | ||
| 1509 | |||
| 1510 | return render(request, template, context) | ||
| 1511 | 1482 | ||
| 1512 | # A set of dependency types valid for both included and built package views | 1483 | # A set of dependency types valid for both included and built package views |
| 1513 | OTHER_DEPENDS_BASE = [ | 1484 | OTHER_DEPENDS_BASE = [ |
