[Secure-testing-commits] r28801 - bin lib/python

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Sep 15 19:17:46 UTC 2014


Author: u-guest
Date: 2014-09-15 19:17:46 +0000 (Mon, 15 Sep 2014)
New Revision: 28801

Modified:
   bin/tracker_service.py
   lib/python/web_support.py
Log:
 use lists instead of tables where there is no tabular data

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2014-09-15 19:16:47 UTC (rev 28800)
+++ bin/tracker_service.py	2014-09-15 19:17:46 UTC (rev 28801)
@@ -52,12 +52,12 @@
                     note = 'Restore local vulnerabilities'
                 else:
                     note = 'Hide ' + desc
-                l.append(TR(TD(A(url.updateParamsDict({prop : None}), note))))
+                l.append(LI(A(url.updateParamsDict({prop : None}), note)))
             else:
                 note = 'Show ' + desc
-                l.append(TR(TD(A(url.updateParamsDict({prop : '1'}), note))))
+                l.append(LI(A(url.updateParamsDict({prop : '1'}), note)))
 
-        return TABLE(l)
+        return UL(l)
 
     def urgencyFiltered(self, urg, vuln):
         """Returns True for urgencies that should be filtered."""

Modified: lib/python/web_support.py
===================================================================
--- lib/python/web_support.py	2014-09-15 19:16:47 UTC (rev 28800)
+++ lib/python/web_support.py	2014-09-15 19:17:46 UTC (rev 28801)
@@ -421,6 +421,8 @@
     return Tag('form', __contents, __attribs)
 def INPUT(*__contents, **__attribs):
     return Tag('input', __contents, __attribs)
+def UL(contents):
+    return tag('ul', contents)
 def LI(*__contents, **__attribs):
     return Tag('li', __contents, __attribs)
 def HEADER(*__contents, **__attribs):




More information about the Secure-testing-commits mailing list