[Zope] Adding security to a new class method...
Chris McDonough
chrism@zope.com
27 May 2002 22:00:27 -0400
I believe you can do something like this:
ObjectManager.foomethod = foomethod
ObjectManager.foomethod__roles__ = ('Manager',)
This is what the class initialization machinery does under the hood.
- C
On Sun, 2002-05-26 at 18:14, Jeff Ross wrote:
> I've written some code that programmatically adds a method to the
> ObjectManager class, but I want to secure my method so that not everyone can
> access it. How can I secure the method after the class has been registered?
>
> Thanks,
>
> Jeff
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )