changeset 5268:02fc82fc062d

twikidraw/anywikidraw action: improve error msgs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Nov 2009 11:21:31 +0100
parents d2d221309f0e
children cc2a7623d40a 5ab7d86bea5b
files MoinMoin/action/anywikidraw.py MoinMoin/action/twikidraw.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/anywikidraw.py	Sun Nov 08 11:11:43 2009 +0100
+++ b/MoinMoin/action/anywikidraw.py	Sun Nov 08 11:21:31 2009 +0100
@@ -93,7 +93,7 @@
         if not request.user.may.write(pagename):
             return _('You are not allowed to save a drawing on this page.')
         if not target:
-            return _("Empty target given.")
+            return _("Empty target name given.")
 
         file_upload = request.files.get('filepath')
         if not file_upload:
@@ -136,7 +136,7 @@
         if not request.user.may.read(pagename):
             return _('You are not allowed to view attachments of this page.')
         if not target:
-            return _("Empty target given.")
+            return _("Empty target name given.")
 
         ci = AttachFile.ContainerItem(request, pagename, target)
         if ci.exists():
--- a/MoinMoin/action/twikidraw.py	Sun Nov 08 11:11:43 2009 +0100
+++ b/MoinMoin/action/twikidraw.py	Sun Nov 08 11:21:31 2009 +0100
@@ -114,7 +114,7 @@
         if not request.user.may.write(pagename):
             return _('You are not allowed to save a drawing on this page.')
         if not target:
-            return _("Empty target given.")
+            return _("Empty target name given.")
 
         file_upload = request.files.get('filepath')
         if not file_upload:
@@ -156,7 +156,7 @@
         if not request.user.may.read(pagename):
             return _('You are not allowed to view attachments of this page.')
         if not target:
-            return _("Empty target given.")
+            return _("Empty target name given.")
 
         ci = AttachFile.ContainerItem(request, pagename, target)
         if ci.exists():