On Thu, 06 Jul 2006 21:19:36 +0200, Max M wrote: > I needed to dynamically generate local roles for an Archetypes based > content object today. > > Different layers in my Plone stack breaks all rules and reads the > __ac_local_roles__ variable directly, instead of calling get_local_roles() > > So to maximize the compatibility between Zopes zmi and Plones local roles > management I wanted to make '__ac_local_roles__' a property with setters > and getters.
it's not an answer to your original question (i have nothing to add to what fred already replied) but TeamSpace solves this by using a ComputedAttribute instead of a property for the dynamic local roles. all of the pertinent code is here, hope you find it useful: http://svn.plone.org/view/collective/teamspace/tags/1.4/security.py?rev=24604&view=auto -r _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )