changeset 3480:b318efb0136b

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Apr 2008 19:20:19 +0200
parents 6e453ec5d42f (current diff) 44a2f2f0d755 (diff)
children 9a3deab96cb7
files
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/PackagePages.py	Sat Apr 05 19:19:21 2008 +0200
+++ b/MoinMoin/action/PackagePages.py	Sat Apr 05 19:20:19 2008 +0200
@@ -103,14 +103,15 @@
         raise ActionError
 
     def makeform(self, error=""):
-        """ Display a rename page form
+        """ Display a package page form
 
-        The form might contain an error that happened when trying to rename.
+        The form might contain an error that happened when package file was not given.
         """
         from MoinMoin.widget.dialog import Dialog
         _ = self.request.getText
 
-        error = u'<p class="error">%s</p>\n' % error
+        if error:
+            error = u'<p class="error">%s</p>\n' % error
 
         d = {
             'baseurl': self.request.getScriptname(),