On 2010-4-24 19:49, Chris McDonough wrote:
> Even better, just leave the authentication policy registrations out of ZCML
> altogether and always pass the authentication and authorization policies to 
> the
> Configurator constructor instead:
> config = Configurator(authentication_policy=..., authorization_policy=...)

FWIW several times it would have been useful for me if there was an API 
to set the auth policies after creating the configurator instead of 
having to specify them at construction time. A common scenerio is that I 
have a function which does the application setup which calls various 
other functions to configure specific parts such as i18n/l18n, URLs, 
etc. by calling them with the Configurator instance as parameter. At the 
moment the API does not allow that for auth policies.


Wichert Akkerman <wich...@wiggy.net>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.
Repoze-dev mailing list

Reply via email to