changeset 5116:2008204d7c1a

cas auth: simplify CASAuth to PyCAS argument passing
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 01 Sep 2009 12:03:56 +0200
parents 675528f4c57a
children 2f7bab994988
files MoinMoin/auth/cas.py
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/cas.py	Tue Sep 01 11:57:59 2009 +0200
+++ b/MoinMoin/auth/cas.py	Tue Sep 01 12:03:56 2009 +0200
@@ -71,17 +71,8 @@
 
     def __init__(self, auth_server, login_path="/login", logout_path="/logout", validate_path="/validate"):
         BaseAuth.__init__(self)
-        self.auth_server = auth_server
-        self.login_path = login_path
-        self.logout_path = logout_path
-        self.validate_path = validate_path
-
-        paths = {
-            'login_path': self.login_path,
-            'logout_path': self.logout_path,
-            'validate_path': self.validate_path,
-        }
-        self.cas = PyCAS(self.auth_server, **paths)
+        self.cas = PyCAS(auth_server, login_path=login_path,
+                         validate_path=validate_path, logout_path=logout_path)
 
     def request(self, request, user_obj, **kw):
         ticket = request.args.get('ticket')