--- a/web/_exceptions.py Mon Apr 12 14:41:01 2010 +0200
+++ b/web/_exceptions.py Tue Apr 13 12:19:24 2010 +0200
@@ -40,10 +40,6 @@
self.status = int(status)
self.content = content
-class ExplicitLogin(AuthenticationError):
- """raised when a bad connection id is given or when an attempt to establish
- a connection failed"""
-
class InvalidSession(CubicWebException):
"""raised when a session id is found but associated session is not found or
invalid
@@ -59,3 +55,9 @@
def dumps(self):
import simplejson
return simplejson.dumps({'reason': self.reason})
+
+class LogOut(PublishException):
+ """raised to ask for deauthentication of a logged in user"""
+ def __init__(self, url):
+ super(LogOut, self).__init__()
+ self.url = url