authkit 0.4.0 issue

3 views
Skip to first unread message

Nick

unread,
Jul 5, 2007, 7:46:21 PM7/5/07
to AuthKit
Anyone here, no thought not :) Since i cant raise a bug on authkit
trac here goes -


Had to make the following changes to authenticate/__init__.py to get
"setup" config to work -

--- /usr/lib/python2.5/site-packages/AuthKit-0.4.0dev_r88-py2.5.egg/
authkit/authenticate/__init__.py.orig 2007-07-06
00:37:23.377000000 +0100
+++ /usr/lib/python2.5/site-packages/AuthKit-0.4.0dev_r88-py2.5.egg/
authkit/authenticate/__init__.py 2007-07-06 00:37:34.648000000
+0100
@@ -364,7 +364,7 @@
all_conf = load_config(options, app_conf, prefix)

#if not all_conf.has_key('setup_method'):
- if not all_conf.has_key('setup_method'):
+ if not all_conf.has_key('setup.method'):
raise AuthKitConfigError('No authkit.setup.method was
specified')

# Check to see if middleware is disabled


Snip of configuration:

authkit.setup.method = forward,cookie
authkit.setup.enable = True
authkit.setup.intercept = 401, 403

Error before change:

File "/usr/lib/python2.5/site-packages/AuthKit-0.4.0dev_r88-
py2.5.egg/authkit/authenticate/__init__.py", line 368, in middleware
raise AuthKitConfigError('No authkit.setup.method was specified')
authkit.permissions.AuthKitConfigError: No authkit.setup.method was
specified

James Gardner

unread,
Jul 10, 2007, 10:49:01 AM7/10/07
to aut...@googlegroups.com
Hi Nick,

This appears to be fixed now. I've added a config test so that we'll
hopefully catch these sorts of problems in future.

Cheers,

James

Reply all
Reply to author
Forward
0 new messages