changeset 967:675d01d7cb68

Output xmlrpc fault in case of invalid token.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sun, 09 Jul 2006 20:32:46 +0200
parents 69af0200534e
children 3108c8b2597e
files MoinMoin/xmlrpc/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/__init__.py	Sun Jul 09 20:32:08 2006 +0200
+++ b/MoinMoin/xmlrpc/__init__.py	Sun Jul 09 20:32:46 2006 +0200
@@ -518,7 +518,7 @@
             self.request.user = u
             return "SUCCESS"
         else:
-            raise Exception("Invalid token.") # XXX make a distinct class
+            return xmlrpclib.Fault(1, "Invalid token.")
     
     def xmlrpc_getDiff(self, pagename, from_rev, to_rev):
         return "NOT_IMPLEMENTED_YET"