[ZPT] accessing object attributes from python expression raiseserror
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.
----- Original Message -----
From: "Michael R. Bernstein" <email@example.com>
To: "Evan Simpson" <firstname.lastname@example.org>
Cc: "Zope Page Templates" <email@example.com>
Sent: Tuesday, January 08, 2002 9:15 AM
Subject: Re: [ZPT] accessing object attributes from python expression
> 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?
> ZPT mailing list