diff options
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 = [ |