İstatistikler sıralı çıksın.
Source sayfalarında direk bugzilla linki. Emailler mangle ediliyor.
This commit is contained in:
+18
-11
@@ -12,6 +12,7 @@
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import codecs
|
import codecs
|
||||||
|
import re
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
@@ -51,7 +52,7 @@ Depoda toplam %(nr_source)d kaynak paket, ve bu paketlerden oluşturulacak
|
|||||||
%(longpy)s
|
%(longpy)s
|
||||||
</tbody></table></p>
|
</tbody></table></p>
|
||||||
|
|
||||||
<h3>Eksik paketler</h3><p><table><tbody>
|
<h3>Eksik ikili paketler</h3><p><table><tbody>
|
||||||
%(missing)s
|
%(missing)s
|
||||||
</tbody></table></p>
|
</tbody></table></p>
|
||||||
|
|
||||||
@@ -113,6 +114,9 @@ def_source_html = u"""
|
|||||||
<h3>Lisanslar:</h3>
|
<h3>Lisanslar:</h3>
|
||||||
<p>%(license)s</p>
|
<p>%(license)s</p>
|
||||||
|
|
||||||
|
<p><a href="http://bugs.uludag.org.tr/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Paketler&component=%(name)s&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=">
|
||||||
|
Hata kayıtlarına bak</a></p>
|
||||||
|
|
||||||
<h3>Bu kaynaktan derlenen ikili paketler:</h3>
|
<h3>Bu kaynaktan derlenen ikili paketler:</h3>
|
||||||
<p>%(packages)s</p>
|
<p>%(packages)s</p>
|
||||||
|
|
||||||
@@ -190,6 +194,9 @@ def template_table(tmpl_name, list):
|
|||||||
data += (tmpl % item)
|
data += (tmpl % item)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
def mangle_email(email):
|
||||||
|
return re.sub("@", " [at] ", email)
|
||||||
|
|
||||||
|
|
||||||
class Histogram:
|
class Histogram:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -409,7 +416,7 @@ class Packager:
|
|||||||
srcs = map(lambda x: "<a href='source-%s.html'>%s</a>" % (x, x), self.sources)
|
srcs = map(lambda x: "<a href='source-%s.html'>%s</a>" % (x, x), self.sources)
|
||||||
dict = {
|
dict = {
|
||||||
"name": self.name,
|
"name": self.name,
|
||||||
"email": self.email,
|
"email": mangle_email(self.email),
|
||||||
"sources": ", ".join(srcs)
|
"sources": ", ".join(srcs)
|
||||||
}
|
}
|
||||||
template_write("paksite/%s.html" % self.name, "packager", dict)
|
template_write("paksite/%s.html" % self.name, "packager", dict)
|
||||||
@@ -496,26 +503,26 @@ class Repository:
|
|||||||
|
|
||||||
def report_html(self):
|
def report_html(self):
|
||||||
miss = map(lambda x: "<tr><td><a href='./package-%s.html'>%s</a></td></tr>" % (x, x), missing.keys())
|
miss = map(lambda x: "<tr><td><a href='./package-%s.html'>%s</a></td></tr>" % (x, x), missing.keys())
|
||||||
upeople = {}
|
upeople = []
|
||||||
for p in self.people.get_list():
|
for p in self.people.get_list():
|
||||||
upeople["<a href='./%s.html'>%s</a>" % (p[0], p[0])] = p[1]
|
upeople.append(("<a href='./%s.html'>%s</a>" % (p[0], p[0]), p[1]))
|
||||||
if errors:
|
if errors:
|
||||||
e = "<br>".join(errors)
|
e = "<br>".join(errors)
|
||||||
else:
|
else:
|
||||||
e = ""
|
e = ""
|
||||||
upatch = {}
|
upatch = []
|
||||||
for p in self.mostpatched.get_list(5):
|
for p in self.mostpatched.get_list(5):
|
||||||
upatch["<a href='./source-%s.html'>%s</a>" % (p[0], p[0])] = p[1]
|
upatch.append(("<a href='./source-%s.html'>%s</a>" % (p[0], p[0]), p[1]))
|
||||||
ulongpy = {}
|
ulongpy = []
|
||||||
for p in self.longpy.get_list(5):
|
for p in self.longpy.get_list(5):
|
||||||
ulongpy["<a href='./source-%s.html'>%s</a>" % (p[0], p[0])] = p[1]
|
ulongpy.append(("<a href='./source-%s.html'>%s</a>" % (p[0], p[0]), p[1]))
|
||||||
dict = {
|
dict = {
|
||||||
"nr_source": self.nr_sources,
|
"nr_source": self.nr_sources,
|
||||||
"nr_packages": self.nr_packages,
|
"nr_packages": self.nr_packages,
|
||||||
"nr_patches": self.nr_patches,
|
"nr_patches": self.nr_patches,
|
||||||
"most_patched": template_table("table", upatch.items()),
|
"most_patched": template_table("table", upatch),
|
||||||
"longpy": template_table("table", ulongpy.items()),
|
"longpy": template_table("table", ulongpy),
|
||||||
"packagers": template_table("table", upeople.items()),
|
"packagers": template_table("table", upeople),
|
||||||
"missing": "\n".join(miss),
|
"missing": "\n".join(miss),
|
||||||
"errors": e
|
"errors": e
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user