diff MoinMoin/action/SyncPages.py @ 1263:e313c2187271

Show an error message for the direction UP.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 12 Aug 2006 23:20:57 +0200
parents 16bed977b054
children 064778edb38c
line wrap: on
line diff
--- a/MoinMoin/action/SyncPages.py	Sat Aug 12 22:53:48 2006 +0200
+++ b/MoinMoin/action/SyncPages.py	Sat Aug 12 23:20:57 2006 +0200
@@ -101,6 +101,9 @@
         params = self.fix_params(self.parse_page())
 
         try:
+            if params["direction"] == UP:
+                raise ActionStatus(_("The only supported directions are BOTH and DOWN."))
+
             if not self.request.cfg.interwikiname:
                 raise ActionStatus(_("Please set an interwikiname in your wikiconfig (see HelpOnConfiguration) to be able to use this action."))