[gnue] r9544 - trunk/www/utils/webhelpers

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-05-02 06:43:21 -0500 (Wed, 02 May 2007)
New Revision: 9544

Modified:
   trunk/www/utils/webhelpers/tools.py
Log:
Fix for unavailable current release.


Modified: trunk/www/utils/webhelpers/tools.py
===================================================================
--- trunk/www/utils/webhelpers/tools.py	2007-05-02 11:28:00 UTC (rev 9543)
+++ trunk/www/utils/webhelpers/tools.py	2007-05-02 11:43:21 UTC (rev 9544)
@@ -83,7 +83,10 @@
                 '<p><a href="..">%s</a> %s was released on %s.</p>\n\n' % (name, release, mod.releases.getReleaseDate(release,dfmt))
 
       if release != currentRelease:
-        html += '<p class="warn"><b>Please note:</b> This is an old version of <i>%s</i>. The latest version is <a href="../%s/">%s</a>, released on %s.</p>\n\n' % (name, currentRelease, currentRelease, currentReleaseDate)
+        if currentRelease is None:
+          html += '<p class="warn"><b>Please note:</b> This is an old version of <i>%s</i>. The latest version is <a href="../%s/">%s</a>, released on %s.</p>\n\n' % (name, currentRelease, currentRelease, currentReleaseDate)
+        else:
+          html += '<p class="warn"><b>Please note:</b> This is an old version of <i>%s</i>. There is no current release available.</p>\n\n' % name
 
       html += '<h2>Release Notes</h2>\n<p>The following improvements appeared in this release:</p>\n' + \
                 mod.releases.asHTML(release)
@@ -103,7 +106,7 @@
 
 
       phpWrapper('tools/%s/%s/index.php' % (tool, release), html,
-                 name + " " + currentRelease)
+                 name + " " + release)
 
     #
     # Add tool to module menu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.