diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 05108975ae..de1e4139a1 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -1493,96 +1493,6 @@ def configvars(request, build_id): | |||
1493 | _set_parameters_values(pagesize, orderby, request) | 1493 | _set_parameters_values(pagesize, orderby, request) |
1494 | return response | 1494 | return response |
1495 | 1495 | ||
1496 | def bpackage(request, build_id): | ||
1497 | template = 'bpackage.html' | ||
1498 | (pagesize, orderby) = _get_parameters_values(request, 100, 'name:+') | ||
1499 | mandatory_parameters = { 'count' : pagesize, 'page' : 1, 'orderby' : orderby } | ||
1500 | retval = _verify_parameters( request.GET, mandatory_parameters ) | ||
1501 | if retval: | ||
1502 | return _redirect_parameters( 'packages', request.GET, mandatory_parameters, build_id = build_id) | ||
1503 | (filter_string, search_term, ordering_string) = _search_tuple(request, Package) | ||
1504 | queryset = Package.objects.filter(build = build_id).filter(size__gte=0) | ||
1505 | queryset = _get_queryset(Package, queryset, filter_string, search_term, ordering_string, 'name') | ||
1506 | |||
1507 | packages = _build_page_range(Paginator(queryset, pagesize),request.GET.get('page', 1)) | ||
1508 | |||
1509 | build = Build.objects.get( pk = build_id ) | ||
1510 | |||
1511 | context = { | ||
1512 | 'objectname': 'packages built', | ||
1513 | 'build': build, | ||
1514 | 'project': build.project, | ||
1515 | 'objects' : packages, | ||
1516 | 'default_orderby' : 'name:+', | ||
1517 | 'tablecols':[ | ||
1518 | { | ||
1519 | 'name':'Package', | ||
1520 | 'qhelp':'Packaged output resulting from building a recipe', | ||
1521 | 'orderfield': _get_toggle_order(request, "name"), | ||
1522 | 'ordericon':_get_toggle_order_icon(request, "name"), | ||
1523 | }, | ||
1524 | { | ||
1525 | 'name':'Package version', | ||
1526 | 'qhelp':'The package version and revision', | ||
1527 | }, | ||
1528 | { | ||
1529 | 'name':'Size', | ||
1530 | 'qhelp':'The size of the package', | ||
1531 | 'orderfield': _get_toggle_order(request, "size", True), | ||
1532 | 'ordericon':_get_toggle_order_icon(request, "size"), | ||
1533 | 'orderkey' : 'size', | ||
1534 | 'clclass': 'size', 'hidden': 0, | ||
1535 | 'dclass' : 'span2', | ||
1536 | }, | ||
1537 | { | ||
1538 | 'name':'License', | ||
1539 | 'qhelp':'The license under which the package is distributed. Multiple license names separated by the pipe character indicates a choice between licenses. Multiple license names separated by the ampersand character indicates multiple licenses exist that cover different parts of the source', | ||
1540 | 'orderfield': _get_toggle_order(request, "license"), | ||
1541 | 'ordericon':_get_toggle_order_icon(request, "license"), | ||
1542 | 'orderkey' : 'license', | ||
1543 | 'clclass': 'license', 'hidden': 1, | ||
1544 | }, | ||
1545 | { | ||
1546 | 'name':'Recipe', | ||
1547 | 'qhelp':'The name of the recipe building the package', | ||
1548 | 'orderfield': _get_toggle_order(request, "recipe__name"), | ||
1549 | 'ordericon':_get_toggle_order_icon(request, "recipe__name"), | ||
1550 | 'orderkey' : 'recipe__name', | ||
1551 | 'clclass': 'recipe__name', 'hidden': 0, | ||
1552 | }, | ||
1553 | { | ||
1554 | 'name':'Recipe version', | ||
1555 | 'qhelp':'Version and revision of the recipe building the package', | ||
1556 | 'clclass': 'recipe__version', 'hidden': 1, | ||
1557 | }, | ||
1558 | { | ||
1559 | 'name':'Layer', | ||
1560 | 'qhelp':'The name of the layer providing the recipe that builds the package', | ||
1561 | 'orderfield': _get_toggle_order(request, "recipe__layer_version__layer__name"), | ||
1562 | 'ordericon':_get_toggle_order_icon(request, "recipe__layer_version__layer__name"), | ||
1563 | 'orderkey' : 'recipe__layer_version__layer__name', | ||
1564 | 'clclass': 'recipe__layer_version__layer__name', 'hidden': 1, | ||
1565 | }, | ||
1566 | { | ||
1567 | 'name':'Layer branch', | ||
1568 | 'qhelp':'The Git branch of the layer providing the recipe that builds the package', | ||
1569 | 'orderfield': _get_toggle_order(request, "recipe__layer_version__branch"), | ||
1570 | 'ordericon':_get_toggle_order_icon(request, "recipe__layer_version__branch"), | ||
1571 | 'orderkey' : 'recipe__layer_version__branch', | ||
1572 | 'clclass': 'recipe__layer_version__branch', 'hidden': 1, | ||
1573 | }, | ||
1574 | { | ||
1575 | 'name':'Layer commit', | ||
1576 | 'qhelp':'The Git commit of the layer providing the recipe that builds the package', | ||
1577 | 'clclass': 'recipe__layer_version__layer__commit', 'hidden': 1, | ||
1578 | }, | ||
1579 | ] | ||
1580 | } | ||
1581 | |||
1582 | response = render(request, template, context) | ||
1583 | _set_parameters_values(pagesize, orderby, request) | ||
1584 | return response | ||
1585 | |||
1586 | def bfile(request, build_id, package_id): | 1496 | def bfile(request, build_id, package_id): |
1587 | template = 'bfile.html' | 1497 | template = 'bfile.html' |
1588 | files = Package_File.objects.filter(package = package_id) | 1498 | files = Package_File.objects.filter(package = package_id) |