[mentors-ops] r303 - trunk/website/cgi-bin/Mentors
mentors at mentors.debian.net
mentors at mentors.debian.net
Sun Jul 22 23:23:29 CEST 2007
Author: mentors
Date: 2007-07-22 23:23:29 +0200 (Sun, 22 Jul 2007)
New Revision: 303
Modified:
trunk/website/cgi-bin/Mentors/Repository.py
Log:
Fixed display of DSC paths in RFS boilerplates.
Modified: trunk/website/cgi-bin/Mentors/Repository.py
===================================================================
--- trunk/website/cgi-bin/Mentors/Repository.py 2007-07-22 20:17:27 UTC (rev 302)
+++ trunk/website/cgi-bin/Mentors/Repository.py 2007-07-22 21:23:29 UTC (rev 303)
@@ -20,6 +20,7 @@
self.name = None # Name of the package
self.id = None # id of the package in the database
self.version = None # Version/revision of the package
+ self.version_no_epoch = None # Version/revision of the package without epoch
self.maintainerId = None # Id of the maintainer
self.uploadtime = None # Timestamp the package was uploaded to mdn
self.description = None # Description string of the package
@@ -53,10 +54,16 @@
self.name = cgi.escape(row['package'])
else:
self.name = row['package']
+
+ self.version = row['version']
if escape:
- self.version = cgi.escape(row['version'])
+ self.version = cgi.escape(self.version)
+
+ if ':' in self.version:
+ self.version_no_epoch = self.version.split(':')[1]
else:
- self.version = row['version']
+ self.version_no_epoch = self.version
+
self.maintainerId = row['user_id']
self.uploadtime = row['import_timestamp']
if escape:
More information about the mentors-ops
mailing list