[mentors-ops] r264 - website/cgi-bin

mentors at lonestar.workaround.org mentors at lonestar.workaround.org
Sat Sep 23 22:41:09 CEST 2006


Author: mentors
Date: 2006-09-23 22:41:08 +0200 (Sat, 23 Sep 2006)
New Revision: 264

Modified:
   website/cgi-bin/sponsor-pkglist
Log:
"Needs sponsor" field is now also shown on sponsor-pkglist


Modified: website/cgi-bin/sponsor-pkglist
===================================================================
--- website/cgi-bin/sponsor-pkglist	2006-09-23 20:38:02 UTC (rev 263)
+++ website/cgi-bin/sponsor-pkglist	2006-09-23 20:41:08 UTC (rev 264)
@@ -88,6 +88,7 @@
          <th>Version</th>
          <th>Maintainer</th>
          <th>Uploaded</th>
+         <th>Needs a sponsor</th>
          </tr>"""
       for package in packages:
          packageLink = "%s?action=details;package=%s" % (web.thiscgi,
@@ -109,6 +110,13 @@
 
          print """<td class="lines">%s</td>""" % \
             (Mentors.Util.niceAge(package.uploadtime, ))
+
+         if package.seekSponsor == 1:  # yes
+            print """<td class="lines">YES</td>"""
+         elif package.seekSponsor == 0:    # no
+            print """<td class="lines">No, thanks</td>"""
+         elif package.seekSponsor == -1: # unknown
+            print """<td class="lines">unknown</td>"""
          print """</tr>"""
       print "</table>"
    else:




More information about the mentors-ops mailing list