[ZPT] accessing object attributes from python expression raiseserror

iap@y2fun.com iap@y2fun.com
Tue, 8 Jan 2002 12:44:03 +0800


I encoutered very similar problem.
for example: <span tal:content="here/title">TITLE</span>
raises Unauthorized exception.
I tried to call this template object from another DTML Method by
<dtml-return "_.getitem(<page template id>,1)">
and it no more complains.

Hope it helps.

Iap, Singuan



----- Original Message -----
From: "Michael R. Bernstein" <webmaven@lvcm.com>
To: "Evan Simpson" <evan@zope.com>
Cc: "Zope Page Templates" <zpt@zope.org>
Sent: Tuesday, January 08, 2002 9:15 AM
Subject: Re: [ZPT] accessing object attributes from python expression
raiseserror


> On Mon, 2002-01-07 at 15:25, Evan Simpson wrote:
> > Michael R. Bernstein wrote:
> >
> > > The following code raises Unauthorized:
> > >
> > > Can anyone suggest what I'm doing wrong?
> >
> >
> > T'isnt you.  The Session components are written with a default deny
policy, rather than the traditional default allow.
> >
> >
> > That is, they deny access to anything not explicitly exposed, and
> > 'meta_type' fell through the cracks.  This needs to be fixed.
>
> id raises the same error, though getId doesn't.
>
> Will this be fixed for 2.5 final?
>
> Thanks,
>
> Michael.
>
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>