[Zope-dev] Re: Developing plugins for PluggableAuthService

Chris Withers chris at simplistix.co.uk
Tue Aug 31 06:25:08 EDT 2004


Could you add this patch to the following collector issue:

http://zope.org/Members/urbanape/PluggableAuthService/Collector/4

cheers,

Chris

Willi Langenberger wrote:

> According to Lennart Regebro:
> 
>>No. Closer inspection seems to show that I actually don't get PAS to do 
>>anything at all. It is simply ignored, unless I put it into the root, in 
>>which case I can't do anything, since it doesn't care of emergency_user.
> 
> 
> I also had this problem with the emergency user. Try the following patch:
> 
> -----snip-snip-------------------
> 
> $ diff -u PluggableAuthService.py.ori PluggableAuthService.py
> --- PluggableAuthService.py.ori 2004-04-28 21:58:50.000000000 +0200
> +++ PluggableAuthService.py     2004-07-31 23:08:22.000000000 +0200
> @@ -784,7 +784,7 @@
>  
>          """ user_id -> decorated_user
>          """
> -        if user_id == self._emergency_user.getId():
> +        if user_id == self._emergency_user.getUserName():
>              return self._emergency_user
>  
>          if cache is None:
> 
> -----snip-snip-------------------
> 
> At least it worked for me.
> 
> AFAIK its already in the CVS.
> 
> 
> \wlang{}
> 

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list