[Zope] efficient internal redirect

Kevin Dangoor kid@kendermedia.com
Mon, 13 Mar 2000 12:51:05 -0500


----- Original Message -----
From: "Andy Heath" <a.k.heath@open.ac.uk>
To: "alex" <alex@mop.no>
Cc: <zope@zope.org>
Sent: Monday, March 13, 2000 8:23 AM
Subject: Re: [Zope] efficient internal redirect


> <dtml-var "whatever.whateverelse.object> gets the right object
> but it doesn't get rendered.

If it's a DTML Method, you could do <dtml-var
"whatever.whateverelse.object(_.None, _)">

There is also a _.render method that I've never had occasion to use.

Also, if you want to make things a bit more generic and work somewhat like
the Redirector, you could also do a
<dtml-var "REQUEST.resolve_url(the_new_complete_url)(_.None, _)">

All untested, but will hopefully help you along...

Kevin