summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python/tbc_www/views.py')
-rw-r--r--python/tbc_www/views.py32
1 files changed, 29 insertions, 3 deletions
diff --git a/python/tbc_www/views.py b/python/tbc_www/views.py
index ff9a201..df2af96 100644
--- a/python/tbc_www/views.py
+++ b/python/tbc_www/views.py
@@ -31,7 +31,7 @@ def home(request):
pagerequest = 'home'
Lines = 10
TmpDict = default_TmpDict(pagerequest)
- TmpDict['EM'] = EbuildsMetadata.objects.filter(Revision = '1.1').order_by('-Id')[:Lines]
+ TmpDict['EM'] = EbuildsMetadata.objects.filter(New = True).order_by('-Id')[:Lines]
alist = []
for BL in BuildLogs.objects.order_by('-TimeStamp')[:Lines]:
adict2 = {}
@@ -107,7 +107,7 @@ def packages(request, category_id):
adict['PackageId'] = PM.PackageId.PackageId
adict['Package'] = PM.PackageId.Package
adict['Descriptions'] = PM.Descriptions
- adict['Changlog'] =PM.Changlog
+ adict['Commitlog'] =PM.Gitlog
try:
PackagesRepoman.objects.get(PackageId__PackageId = PM.PackageId.PackageId)
except PackagesRepoman.DoesNotExist as e:
@@ -153,7 +153,7 @@ def new_main(request):
pagerequest = 'new'
Lines = 30
TmpDict = default_TmpDict(pagerequest)
- TmpDict['EM'] = EbuildsMetadata.objects.filter(Revision = '1.1').order_by('-Id')[:Lines]
+ TmpDict['EM'] = EbuildsMetadata.objects.filter(New = True).order_by('-Id')[:Lines]
alist = []
for BL in BuildLogs.objects.order_by('-TimeStamp')[:Lines]:
adict2 = {}
@@ -211,3 +211,29 @@ def new_repomanqa(request):
TmpDict['QA_tmp'] = BuildLogsQa.objects.order_by('-Id')[:Lines/2]
TmpDict['PR_tmp'] = PackagesRepoman.objects.order_by('-Id')[:Lines/2]
return render(request, 'pages/' + pagerequest + '/repomanqa/index.html', TmpDict)
+
+def new_logs(request):
+ pagerequest = 'new'
+ Lines = 30
+ TmpDict = default_TmpDict(pagerequest)
+ alist = []
+ for BL in BuildLogs.objects.order_by('-TimeStamp')[:Lines]:
+ adict2 = {}
+ adict2['BuildLogId'] = BL.BuildLogId
+ adict2['C'] = BL.EbuildId.PackageId.CategoryId.Category
+ adict2['P'] = BL.EbuildId.PackageId.Package
+ adict2['V'] = BL.EbuildId.Version
+ adict2['R'] = BL.EbuildId.PackageId.RepoId.Repo
+ adict2['Fail'] = BL.Fail
+ adict2['SummeryText'] = BL.SummeryText
+ if BL.Fail:
+ adict2['BE_tmp'] = BuildLogsErrors.objects.filter(BuildLogId = BL.BuildLogId)
+ try:
+ PackagesRepomanInfo = PackagesRepoman.objects.get(PackageId__PackageId = BL.EbuildId.PackageId.PackageId)
+ except PackagesRepoman.DoesNotExist as e:
+ adict2['PR'] = False
+ else:
+ adict2['PR'] = PackagesRepomanInfo.RepomanText
+ alist.append(adict2)
+ TmpDict['BL_tmp'] = alist
+ return render(request, 'pages/' + pagerequest + '/logs/index.html', TmpDict)