Ansgar pushed to branch master at Debian FTP Team / dak
Commits:
-
b7efeb1f
by Ansgar at 2021-09-25T13:59:38+02:00
2 changed files:
Changes:
... | ... | @@ -51,7 +51,6 @@ from daklib.dak_exceptions import ParseMaintError |
51 | 51 |
|
52 | 52 |
Cnf = None
|
53 | 53 |
direction = []
|
54 |
-row_number = 0
|
|
55 | 54 |
|
56 | 55 |
################################################################################
|
57 | 56 |
|
... | ... | @@ -282,9 +281,6 @@ def table_footer(type): |
282 | 281 |
|
283 | 282 |
|
284 | 283 |
def table_row(source, version, arch, last_mod, maint, distribution, closes, fingerprint, sponsor, changedby):
|
285 |
- |
|
286 |
- global row_number
|
|
287 |
- |
|
288 | 284 |
trclass = "sid"
|
289 | 285 |
session = DBConn().session()
|
290 | 286 |
for dist in distribution:
|
... | ... | @@ -299,10 +295,7 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes, fing |
299 | 295 |
trclass += " sourceNEW"
|
300 | 296 |
session.commit()
|
301 | 297 |
|
302 |
- if row_number % 2 != 0:
|
|
303 |
- print("<tr class=\"%s even\">" % (trclass))
|
|
304 |
- else:
|
|
305 |
- print("<tr class=\"%s odd\">" % (trclass))
|
|
298 |
+ print("<tr class=\"%s\">" % (trclass))
|
|
306 | 299 |
|
307 | 300 |
if "sourceNEW" in trclass:
|
308 | 301 |
print("<td class=\"package\">%s</td>" % (source))
|
... | ... | @@ -338,7 +331,6 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes, fing |
338 | 331 |
for close in closes:
|
339 | 332 |
print("<a href="">\"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%s\">#%s</a><br/>" % (html.escape(close), html.escape(close, quote=False)))
|
340 | 333 |
print("</td></tr>")
|
341 |
- row_number += 1
|
|
342 | 334 |
|
343 | 335 |
############################################################
|
344 | 336 |
|
... | ... | @@ -35,11 +35,6 @@ from daklib.dbconn import * |
35 | 35 |
from daklib.gpg import SignedFile
|
36 | 36 |
from daklib import utils
|
37 | 37 |
|
38 |
-################################################################################
|
|
39 |
- |
|
40 |
-row_number = 1
|
|
41 |
- |
|
42 |
- |
|
43 | 38 |
################################################################################
|
44 | 39 |
|
45 | 40 |
|
... | ... | @@ -104,15 +99,12 @@ def table_footer(): |
104 | 99 |
|
105 | 100 |
|
106 | 101 |
def table_row(changesname, delay, changed_by, closes, fingerprint):
|
107 |
- global row_number
|
|
108 |
- |
|
109 |
- res = '<tr class="%s">' % ((row_number % 2) and 'odd' or 'even')
|
|
102 |
+ res = '<tr>'
|
|
110 | 103 |
res += (2 * '<td valign="top">%s</td>') % tuple(html.escape(x, quote=False) for x in (changesname, delay))
|
111 | 104 |
res += '<td valign="top">%s<br><span class=\"deferredfp\">Fingerprint: %s</span></td>' % (html.escape(changed_by, quote=False), fingerprint)
|
112 | 105 |
res += ('<td valign="top">%s</td>' %
|
113 | 106 |
''.join(['<a href="">#%s</a><br>' % (close, close) for close in closes]))
|
114 | 107 |
res += '</tr>\n'
|
115 |
- row_number += 1
|
|
116 | 108 |
return res
|
117 | 109 |
|
118 | 110 |
|