This is actually a bug in the tutorial.

The package's configure.zcml should have a directive like this:


Currently it's missing the "callback" attribute.

- C

george hu wrote:
> Don't quite understand the following function, as described "The
> groupfinder defined here is an authorization policy “callback”; can't
> see it is called by which function. And it doesn't matter if I remove
> the function from the code.
> def groupfinder(userid, request):
>     if userid in USERS:
>         return GROUPS.get(userid, [])
> _______________________________________________
> Repoze-dev mailing list

Repoze-dev mailing list

Reply via email to