mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 21:24:46 +02:00

Add a script for doing a one-time import of OE-Classic recipe information, so comparisons against OE-Core can be performed; this is stored using a new ClassicRecipe model supporting additional fields for tracking migration status. The migration status fields can be updated as well as viewed and summarised in graph format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
18 lines
641 B
Python
18 lines
641 B
Python
# layerindex-web - custom context processor
|
|
#
|
|
# Copyright (C) 2013 Intel Corporation
|
|
#
|
|
# Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
from layerindex.models import Branch, LayerItem
|
|
|
|
def layerindex_context(request):
|
|
current_branch = request.session.get('branch', None)
|
|
if not current_branch:
|
|
current_branch = 'master'
|
|
return {
|
|
'all_branches': Branch.objects.exclude(name='oe-classic').order_by('sort_priority'),
|
|
'current_branch': current_branch,
|
|
'unpublished_count': LayerItem.objects.filter(status='N').count(),
|
|
'oe_classic': Branch.objects.filter(name='oe-classic')
|
|
} |