[Zope] unauthorized tal repeat by class method

Bernd Dorn zope-mailinglist at mopa.at
Wed Sep 17 13:09:09 EDT 2003


Dieter Maurer wrote:

> Bernd Dorn wrote at 2003-9-16 11:47 +0200:
>  > ...
>  > i pass an instance of a none-zopish class to a page template as keyword.
>  > 
>  > in the page template i can access the instance, but cannot invoke a 
>  > method on it which returns me a sequence of other classes
> 
> You know about security declarations (you need them!).
> Please read the Zope Developper Guide.
> 
> When something is not declared public, the corresponding class
> must also derive from "Acquisition.{Im|Ex}plicit" and
> the instance must be acquisition wrapped.
> 
> 
> Dieter


thanks

i found it out myself yesterday

just for the records:

it doesnt have to be wrapped, at least in my case

my objects are not persistent, they are created on the fly and are not 
an attribute of some zopish object and i have not done any __of__ stuff 
with them, but it works

sg, bernd







More information about the Zope mailing list