[Zope-PAS] struggling with Local Role plugin

2007-04-11 Thread Stan McFarland
Hi, I have what I think is a fairly simple use case for my Plone site. I want to be able to add a local role dynamically based on two factors - the content of the object, and a given external condition. So I've written a local role plugin, where getRolesInContext() checks these two factors

[Zope-PAS] Re: struggling with Local Role plugin

2007-04-11 Thread Stan McFarland
a quick way to check this and roles in general, is put together a python script that shows the users roles and permissions in context, as a quick example, here's one i use on occassion (check_roles).. and just invoke by in the url after the context, by appending check_roles. member =

[Zope-PAS] Re: struggling with Local Role plugin

2007-04-11 Thread Stan McFarland
a quick way to check this and roles in general, is put together a python script that shows the users roles and permissions in context, as a quick example, here's one i use on occassion (check_roles).. and just invoke by in the url after the context, by appending check_roles. member =

Re: [Zope-PAS] Re: struggling with Local Role plugin

2007-04-11 Thread Wichert Akkerman
Previously Stan McFarland wrote: a quick way to check this and roles in general, is put together a python script that shows the users roles and permissions in context, as a quick example, here's one i use on occassion (check_roles).. and just invoke by in the url after the context,

[Zope-PAS] Re: struggling with Local Role plugin

2007-04-11 Thread Stan McFarland
Wichert Akkerman [EMAIL PROTECTED] writes: Use a dynamic group. Wichert. Wichert, Thanks for the response. I can see where there's some similarity in the notion of adding a role to a user dynamically and adding a user to a group dynamically, assuming that the group has the