[Zope] MailHost Questions

marc lindahl marc@bowery.com
Mon, 31 Dec 2001 14:04:57 -0500


> From: Ben Ocean <zope@thewebsons.com>
> Date: Mon, 31 Dec 2001 10:43:23 -0800
> To: complaw@hal-pc.org
> Cc: zope@zope.org
> Subject: Re: [Zope] MailHost Questions
> 
> At 05:28 PM 12/31/01 +0000, you wrote:
>>> Hi;
>>> 1. After the MailHost container I call a dtml-var with a page to display
>>> for the user. I would like to direct the visitor to a dtml-document in
>>> another folder. Using dot notation doesn't help. How do I do this?
>> 
>> A quick (but dirty) way to do it would be to redirect to the absolute_url
>> of the
>> document that you wish the users to see.
>> 
>> context.REQUEST.RESPONSE.redirect(_insert your parametes here_)
> 
> <dtml-call 
> "REQUEST.RESPONSE.redirect('http://constructioncalc.com/<dtml-var
> size>/eng/Seminars/num/<dtml-var group>')">
> 
> This (of course) doesn't work. How do I call the variables *size* and
> *group* within the context of the dtml-call?


Isnt' it something like

<dtml-call 
"REQUEST.RESPONSE.redirect('http://constructioncalc.com/'+_.getitem('size')+
'/eng/Seminars/num/'+_.getitem('group'))">

you'd also want to use the built in variable for your site name, instead of
hard coding it.