Re: [Zope] changing permissions on classes/methods at runtime?

2012-03-07 Thread Jürgen Herrmann
Am 06.03.2012 09:02, schrieb Lennart Regebro: On Mon, Mar 5, 2012 at 19:22, Sean Upton sdup...@gmail.com wrote: On Wed, Feb 29, 2012 at 7:12 AM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: hi all! is it possible to change permissions and roles on classes/methods at runtime? normally

Re: [Zope] changing permissions on classes/methods at runtime?

2012-03-07 Thread Sean Upton
On Wed, Mar 7, 2012 at 3:47 AM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: now i had a use case where i need to mark some templates and methods as public because they use an internal authentication. One of the challenges I see is that InitializeClass() removes the original 'security'

Re: [Zope] changing permissions on classes/methods at runtime?

2012-03-06 Thread Lennart Regebro
On Mon, Mar 5, 2012 at 19:22, Sean Upton sdup...@gmail.com wrote: On Wed, Feb 29, 2012 at 7:12 AM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: hi all! is it possible to change permissions and roles on classes/methods at runtime? normally you'd attach security declarations inline in

Re: [Zope] changing permissions on classes/methods at runtime?

2012-03-05 Thread Sean Upton
On Wed, Feb 29, 2012 at 7:12 AM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: hi all! is it possible to change permissions and roles on classes/methods at runtime? normally you'd attach security declarations inline in your class definition code: I don't off-hand know why just

Re: [Zope] changing permissions on classes/methods at runtime?

2012-03-02 Thread Thierry Florac
Hi, Le Wed, 29 Feb 2012 15:12:37 +0100, Jürgen Herrmann juergen.herrm...@xlhost.de a écrit: is it possible to change permissions and roles on classes/methods at runtime? normally you'd attach security declarations inline in your class definition code: from AccessControl import