[Zope] Permissions question.

Aleksander Salwa ololo@zeus.polsl.gliwice.pl
Tue, 1 Aug 2000 07:53:22 +0200 (CEST)


On Mon, 31 Jul 2000, Jeff K. Hoffman wrote:

> Hello,
> 
> I am having a permissions problem, and am hoping someone on the list will
> see the error in my ways. I have a ZClass, called a FooManager, that
> inherits from ObjectManager. It is responsible for creating (and managing)
> Foo objects.
> 
> In the FooManager ZClass, I created a DTMLMethod called 'addFoo', and a
> form called 'fooForm'. Following the "How to Create ZClass Instances
> Programmatically" How-To, I modified my 'Foo_add' constructor to avoid
> redirecting if the request contains a noRedir parameter.
> 
> In my 'addFoo' method, I have:
> 
>   <dtml-with "manage_addProduct['FooProduct']">
>     <dtml-call "Foo_add(_.None, _, noRedir=1)">
>   </dtml-with>
> 
> and I set it's Proxy role to 'Manager'.
> 

Is it Zope 2.2.0 ?  If so, Foo_add should also have proxy role 'Manager'.


ololo