[Zope] evaluating attribute values

Martijn Pieters mj@antraciet.nl
Fri, 05 Mar 1999 10:54:01 +0100


At 22:24 04/03/99 , Robin Dunn wrote:
>How can I evaluate a #var equivallent for setting a tag attribute value?
>
>For example, Zope doesn't like this:
>
>    <!--#sendmail smtphost=<!--#var smtpHost--> -->
>
>or this:
>
>    <!--#sendmail smtphost=smtpHost-->
>
>(it tries to use smtpHost as the host name, instead of its value)
>
>
>Help!
>

Why not use a MailHost Object? On that object you can then set the
appropriate SMTP Host, even from DTML code..

--
M.J. Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------