[Zope] MailHost Questions

Ben Ocean zope@thewebsons.com
Mon, 31 Dec 2001 11:44:10 -0800


At 02:04 PM 12/31/01 -0500, you wrote:
>Isnt' it something like
>
><dtml-call
>"REQUEST.RESPONSE.redirect('http://constructioncalc.com/'+_.getitem('size')+
>'/eng/Seminars/num/'+_.getitem('group'))">

Well, that produced an ImplicitAcquirerWrapper error. Since I was for some 
reason able to append a variable at the end of the call, I came up with 
this elaborate, inelegant solution that works for me:

<dtml-elif this_seminar>
  <dtml-call "REQUEST.set('group',group+'_frame')">
   <dtml-if expr="size=='1024'">
    <dtml-call 
"REQUEST.RESPONSE.redirect('http://constructioncalc.com/1024/eng/Seminars/num/'+group)">
   <dtml-else>
    <dtml-call 
"REQUEST.RESPONSE.redirect('http://constructioncalc.com/800/eng/Seminars/num/'+group)">
   </dtml-if>
</dtml-if>

Any ideas on how to make it cleaner?

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

Later on that one ;)
Thanks,
BenO