diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/views.py | 77 |
1 files changed, 75 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 37e2af2574..1105829d96 100644 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
| @@ -540,7 +540,7 @@ def tasks(request, build_id): | |||
| 540 | 540 | ||
| 541 | def recipes(request, build_id): | 541 | def recipes(request, build_id): |
| 542 | template = 'recipes.html' | 542 | template = 'recipes.html' |
| 543 | mandatory_parameters = { 'count': 100, 'page' : 1}; | 543 | mandatory_parameters = { 'count': 100, 'page' : 1, 'orderby':'name:+'}; |
| 544 | retval = _verify_parameters( request.GET, mandatory_parameters ) | 544 | retval = _verify_parameters( request.GET, mandatory_parameters ) |
| 545 | if retval: | 545 | if retval: |
| 546 | return _redirect_parameters( 'recipes', request.GET, mandatory_parameters, build_id = build_id) | 546 | return _redirect_parameters( 'recipes', request.GET, mandatory_parameters, build_id = build_id) |
| @@ -550,7 +550,80 @@ def recipes(request, build_id): | |||
| 550 | 550 | ||
| 551 | recipes = _build_page_range(Paginator(queryset, request.GET.get('count', 100)),request.GET.get('page', 1)) | 551 | recipes = _build_page_range(Paginator(queryset, request.GET.get('count', 100)),request.GET.get('page', 1)) |
| 552 | 552 | ||
| 553 | context = {'build': Build.objects.filter(pk=build_id)[0], 'objects': recipes, } | 553 | context = { |
| 554 | 'objectname': 'recipes', | ||
| 555 | 'build': Build.objects.filter(pk=build_id)[0], | ||
| 556 | 'objects': recipes, | ||
| 557 | 'tablecols':[ | ||
| 558 | { | ||
| 559 | 'name':'Recipe', | ||
| 560 | 'qhelp':'Information about a single piece of software, including where to download the source, configuration options, how to compile the source files and how to package the compiled output', | ||
| 561 | 'orderfield': _get_toggle_order(request, "name"), | ||
| 562 | 'ordericon':_get_toggle_order_icon(request, "name"), | ||
| 563 | }, | ||
| 564 | { | ||
| 565 | 'name':'Recipe version', | ||
| 566 | 'qhelp':'The recipe version and revision', | ||
| 567 | }, | ||
| 568 | { | ||
| 569 | 'name':'Dependencies', | ||
| 570 | 'qhelp':'Recipe build-time dependencies (other recipes)', | ||
| 571 | 'clclass': 'depends_on', 'hidden': 1, | ||
| 572 | }, | ||
| 573 | { | ||
| 574 | 'name':'Reverse dependencies', | ||
| 575 | 'qhelp':'Recipe build-time reverse dependencies (i.e. which other recipes depend on this recipe)', | ||
| 576 | 'clclass': 'depends_by', 'hidden': 1, | ||
| 577 | }, | ||
| 578 | { | ||
| 579 | 'name':'Recipe file', | ||
| 580 | 'qhelp':'Location in disk of the recipe .bb file', | ||
| 581 | 'orderfield': _get_toggle_order(request, "file_path"), | ||
| 582 | 'ordericon':_get_toggle_order_icon(request, "file_path"), | ||
| 583 | 'clclass': 'recipe_file', 'hidden': 0, | ||
| 584 | }, | ||
| 585 | { | ||
| 586 | 'name':'Section', | ||
| 587 | 'qhelp':'The section in which packages should be categorised. There are 5 sections: base, console, utils, devel and libs', | ||
| 588 | 'orderfield': _get_toggle_order(request, "section"), | ||
| 589 | 'ordericon':_get_toggle_order_icon(request, "section"), | ||
| 590 | 'clclass': 'recipe_section', 'hidden': 0, | ||
| 591 | }, | ||
| 592 | { | ||
| 593 | 'name':'License', | ||
| 594 | 'qhelp':'The list of source licenses for the recipe. Separate license names using | (pipe) means there is a choice between licenses. Separate license names using & (ampersand) means multiple licenses exist that cover different parts of the source', | ||
| 595 | 'orderfield': _get_toggle_order(request, "license"), | ||
| 596 | 'ordericon':_get_toggle_order_icon(request, "license"), | ||
| 597 | 'clclass': 'recipe_license', 'hidden': 0, | ||
| 598 | }, | ||
| 599 | { | ||
| 600 | 'name':'Layer', | ||
| 601 | 'qhelp':'The name of the layer prodiving the recipe', | ||
| 602 | 'orderfield': _get_toggle_order(request, "layer_version__layer__name"), | ||
| 603 | 'ordericon':_get_toggle_order_icon(request, "layer_version__layer__name"), | ||
| 604 | 'clclass': 'layer_version__layer__name', 'hidden': 0, | ||
| 605 | }, | ||
| 606 | { | ||
| 607 | 'name':'Layer branch', | ||
| 608 | 'qhelp':'The Git branch of the layer prodiving the recipe', | ||
| 609 | 'orderfield': _get_toggle_order(request, "layer_version__branch"), | ||
| 610 | 'ordericon':_get_toggle_order_icon(request, "layer_version__branch"), | ||
| 611 | 'clclass': 'layer_version__branch', 'hidden': 1, | ||
| 612 | }, | ||
| 613 | { | ||
| 614 | 'name':'Layer commit', | ||
| 615 | 'qhelp':'The Git commit of the layer prodiving the recipe', | ||
| 616 | 'clclass': 'layer_version__layer__commit', 'hidden': 1, | ||
| 617 | }, | ||
| 618 | { | ||
| 619 | 'name':'Layer directory', | ||
| 620 | 'qhelp':'Location in disk of the layer prodiving the recipe', | ||
| 621 | 'orderfield': _get_toggle_order(request, "layer_version__layer__local_path"), | ||
| 622 | 'ordericon':_get_toggle_order_icon(request, "layer_version__layer__local_path"), | ||
| 623 | 'clclass': 'layer_version__layer__local_path', 'hidden': 1, | ||
| 624 | }, | ||
| 625 | ] | ||
| 626 | } | ||
| 554 | 627 | ||
| 555 | return render(request, template, context) | 628 | return render(request, template, context) |
| 556 | 629 | ||
