[Zope] <dtml-with "portal_url.getPortalObject()"> gives
AttributeError
Dieter Maurer
dieter at handshake.de
Tue Nov 11 14:26:31 EST 2003
Marc Lindahl wrote at 2003-11-11 11:31 -0500:
> Good point... how the heck to I get around it??
First of all, you must find the place where
"portal_url" is defined in the wrong way.
Only then, can we find out how to work around that.
> ...
> On Sunday, November 9, 2003, at 03:22 AM, Dieter Maurer wrote:
> > Marc Lindahl wrote at 2003-11-7 19:46 -0500:
> ...
> >> trying to surround a block with <dtml-with
> >> "portal_url.getPortalObject()"> so I reference root level folders. I
> >> get the error:
> >>
> >> Error Type: TALESError
> >> Error Value: exceptions.AttributeError on getPortalObject
> >
> > Almost surely, "portal_url" in not the object you expect.
> > I expect it to be a string in the code above.
> ...
--
Dieter
More information about the Zope
mailing list