[gentoo-commits] proj/tinderbox-cluster-www:master commit in: python/templates/pages/packages/ebuilds/ebuild/, ...

2021-09-23 Thread Magnus Granberg
commit: 5e84cbca6ca8f525703c062f7e824f2c60ed4bc7
Author: Magnus Granberg  gentoo  org>
AuthorDate: Sun May 30 23:16:54 2021 +
Commit: Magnus Granberg  gentoo  org>
CommitDate: Fri Sep 24 02:22:49 2021 +
URL:
https://gitweb.gentoo.org/proj/tinderbox-cluster-www.git/commit/?id=5e84cbca

Restart

Signed-off-by: Magnus Granberg  gentoo.org>

 .gitignore |   8 -
 htdoc/index.html   |   8 -
 python/gosbs/__init__.py   |   0
 python/gosbs/settings.py.conf  | 144 ---
 python/gosbs/urls.py   |   9 -
 python/gosbs/wsgi.py   |  16 -
 python/gosbs_auth/__init__.py  |   0
 python/gosbs_auth/admin.py |   3 -
 python/gosbs_auth/apps.py  |   5 -
 python/gosbs_auth/migrations/__init__.py   |   0
 python/gosbs_auth/models.py|   3 -
 python/gosbs_auth/tests.py |   3 -
 python/gosbs_auth/urls.py  |  11 -
 python/gosbs_auth/views.py |   3 -
 python/manage.py   |  11 -
 python/packages/__init__.py|   0
 python/packages/admin.py   |   3 -
 python/packages/apps.py|   5 -
 python/packages/migrations/__init__.py |   0
 python/packages/models.py  | 188 
 python/packages/tests.py   |   3 -
 python/packages/urls.py|   7 -
 python/packages/views.py   |   3 -
 python/projects/__init__.py|   0
 python/projects/admin.py   |   3 -
 python/projects/apps.py|   5 -
 python/projects/forms.py   |   7 -
 python/projects/migrations/__init__.py |   0
 python/projects/models.py  |  53 ---
 python/projects/tests.py   |   3 -
 python/projects/urls.py|  11 -
 python/projects/views.py   |  86 
 python/templates/includes/layout/footer.html   |  38 --
 .../templates/includes/layout/footer_sitemap.html  |  12 -
 python/templates/includes/layout/head.html |  25 --
 python/templates/includes/layout/header.html   |  90 
 python/templates/includes/layout/sponsor.html  |   9 -
 python/templates/layout/base.html  |  34 --
 .../templates/pages/packages/category/index.html   |  33 --
 .../pages/packages/ebuilds/ebuild/index.html   |  47 --
 python/templates/pages/packages/ebuilds/index.html |  30 --
 python/templates/pages/packages/index.html |  28 --
 python/templates/pages/projects/add/index.html |   8 -
 python/templates/pages/projects/detail/index.html  |   4 -
 python/templates/pages/projects/index.html |  19 -
 python/templates/pages/projects/repos/index.html   |  31 --
 python/templates/pages/www/index.html  |  49 ---
 python/templates/registration/bugzillauser.html|  10 -
 python/templates/registration/logged_out.html  |   5 -
 python/templates/registration/login.html   |  12 -
 .../registration/password_change_form.html |  13 -
 python/www/__init__.py |   0
 python/www/admin.py|   7 -
 python/www/apps.py |   5 -
 python/www/migrations/0001_initial.py  |  64 ---
 python/www/migrations/__init__.py  |   0
 python/www/models.py   |  74 
 python/www/router.py   |  31 --
 python/www/tests.py|   3 -
 python/www/urls.py |   7 -
 python/www/utils.py|  34 --
 python/www/views.py|  19 -
 sql/gosbs-www.sql  | 475 -
 static/foo.txt |   0
 64 files changed, 1817 deletions(-)

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 7be3859..000
--- a/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Backup files
-*~
-__pycache__
-# log dir
-static/logs
-# Python compiled files
-*.pyc
-python/gosbs/settings.py

diff --git a/htdoc/index.html b/htdoc/index.html
deleted file mode 100644
index c217ab3..000
--- a/htdoc/index.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
-  
-
-
-
-  
-  
-
\ No newline at end of file

diff --git a/python/gosbs/__init__.py b/python/gosbs/__init__.py
deleted file mode 100644
index e69de29..000

diff --git a/python/gosbs/settings.py.conf b/python/gosbs/settings.py.conf
deleted file mode 100644
index a2e4330..000
--- 

[gentoo-commits] proj/tinderbox-cluster-www:master commit in: python/templates/pages/packages/ebuilds/ebuild/, ...

2015-07-26 Thread Magnus Granberg
commit: 65c8b3dcce64f5c865baa472c0307a07c1f9872b
Author: Magnus Granberg zorry AT gentoo DOT org
AuthorDate: Sun Jul 26 14:37:39 2015 +
Commit: Magnus Granberg zorry AT gentoo DOT org
CommitDate: Sun Jul 26 14:37:39 2015 +
URL:
https://gitweb.gentoo.org/proj/tinderbox-cluster-www.git/commit/?id=65c8b3dc

add ebuild info and fix listing of packages

 python/tbc_www/models.py   | 27 +
 python/tbc_www/urls.py |  1 +
 python/tbc_www/views.py| 40 --
 python/templates/includes/frontpage/new_logs   |  8 ++--
 .../templates/pages/packages/category/index.html   |  6 +--
 .../pages/packages/ebuilds/ebuild/index.html   | 47 ++
 python/templates/pages/packages/index.html |  6 +--
 7 files changed, 112 insertions(+), 23 deletions(-)

diff --git a/python/tbc_www/models.py b/python/tbc_www/models.py
index 621a7dc..2cb327a 100644
--- a/python/tbc_www/models.py
+++ b/python/tbc_www/models.py
@@ -175,6 +175,14 @@ class Keywords(models.Model):
def __str__(self):
return '%s %s' % (self.KeywordId, self.Keyword)
 
+class Restrictions(models.Model):
+   RestrictionId = models.IntegerField(primary_key=True, 
db_column='restriction_id')
+   Restriction = models.CharField(max_length=150, db_column='restriction')
+   class Meta:
+   db_table = 'restrictions'
+   def __str__(self):
+   return '%s %s' % (self.RestrictionId, self.Restriction)
+
 class EbuildsKeywords(models.Model):
Id =  models.IntegerField(primary_key=True, db_column='id')
EbuildId = models.ForeignKey(Ebuilds, db_column='ebuild_id')
@@ -184,3 +192,22 @@ class EbuildsKeywords(models.Model):
db_table = 'ebuilds_keywords'
def __str__(self):
return '%s %s %s' % (self.EbuildId, self.KeywordId, self.Status)
+
+class EbuildsIuse(models.Model):
+   Id =  models.IntegerField(primary_key=True, db_column='id')
+   EbuildId = models.ForeignKey(Ebuilds, db_column='ebuild_id')
+   UseId = models.ForeignKey(Uses, db_column='use_id')
+   Status =models.BooleanField(db_column='status')
+   class Meta:
+   db_table = 'ebuilds_iuse'
+   def __str__(self):
+   return '%s %s %s %s' % (self.Id, self.EbuildId, self.UseId, 
self.Status)
+
+class EbuildsRestrictions(models.Model):
+   Id =  models.IntegerField(primary_key=True, db_column='id')
+   EbuildId = models.ForeignKey(Ebuilds, db_column='ebuild_id')
+   RestrictionId = models.ForeignKey(Restrictions, 
db_column='restriction_id')
+   class Meta:
+   db_table = 'ebuilds_restrictions'
+   def __str__(self):
+   return '%s %s' % (self.EbuildId, self.RestrictionId)

diff --git a/python/tbc_www/urls.py b/python/tbc_www/urls.py
index 193443f..4d50f40 100644
--- a/python/tbc_www/urls.py
+++ b/python/tbc_www/urls.py
@@ -5,5 +5,6 @@ urlpatterns = patterns('tbc_www.views',
url(r'^packages/$', 'categories'),
url(r'^categories/(?Pcategory_id\d+)/$', 'packages'),
url(r'^package/(?Ppackage_id\d+)/$', 'ebuilds'),
+   url(r'^ebuild/(?Pebuild_id\d+)/$', 'ebuild'),
url(r'^new/$', 'new_main'),
 )

diff --git a/python/tbc_www/views.py b/python/tbc_www/views.py
index f68a706..5b719aa 100644
--- a/python/tbc_www/views.py
+++ b/python/tbc_www/views.py
@@ -7,7 +7,7 @@ from django.conf import settings
 from gentoo_www.models import SiteSettings, Layout, Pages, SubPages, Sponsors, 
Posts
 from tbc_www.models import EbuildsMetadata, BuildLogs, BuildJobs, 
BuildLogsRepomanQa, \
BuildJobsUse, Categories, CategoriesMetadata, Packages, 
PackagesMetadata, Ebuilds, \
-   Repos, EbuildsKeywords, BuildLogsErrors
+   Repos, EbuildsKeywords, BuildLogsErrors, EbuildsRestrictions, 
EbuildsIuse
 import re
 
 def default_TmpDict(pagerequest):
@@ -32,9 +32,10 @@ def home(request):
Lines = 5
TmpDict = default_TmpDict(pagerequest)
TmpDict['EM'] = EbuildsMetadata.objects.filter(Revision = 
'1.1').order_by('-Id')[:Lines]
-   adict = {}
+   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
@@ -43,8 +44,8 @@ def home(request):
adict2['SummeryText'] = BL.SummeryText
if BL.Fail:
adict2['BE_tmp'] = 
BuildLogsErrors.objects.filter(BuildLogId = BL.BuildLogId)
-   adict[BL.BuildLogId] = adict2
-   TmpDict['BL'] = adict
+   alist.append(adict2)
+   TmpDict['BL'] = alist
adict = {}
BJ_Tmp = BuildJobs.objects.order_by('-TimeStamp')[:Lines]