[Zope] ZPT and private method

Andreas Jung andreas at andreas-jung.com
Tue Feb 10 09:41:07 EST 2004


why do you think that the method is called "private"? Please check the
Zope Developers Guide to find out about ClassSecurity. Any TTW code
is restricted, so any private method can never be called by TTW code.


--On Dienstag, 10. Februar 2004 16:35 Uhr +0200 Dragos Chirila 
<d.chirila at finsiel.ro> wrote:

> Hi
> I have a Python product, the main class is derived from SimpleItem. I want
> to call an object private method, 'getSomething', from ZPT index_html of
> the object. I got an error like :
> Error Type: Undefined
> Error Value: You are not allowed to access getSomething in this context
> not found in 'here/getSomething', at line 14, column 9
> The method getSomething is declared private.
> What am I doing wrong here? I cannot call a private method from a ZPT of
> the same object? Is there a way to handle this?
> Thanks a lot,
> Dragos
> _______________________________________________
> Zope maillist  -  Zope at 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 )

More information about the Zope mailing list