[Zope] returning a dtml variable to a page template

Chris Withers chris at simplistix.co.uk
Mon Sep 27 10:55:52 EDT 2004


Laura McCord wrote:

> <dtml-var standard_html_header>
>  <dtml-let msg="">
>   <dtml-var msg>
>  </dtml-let><br>
>  <dtml-let msg2="">
>   <dtml-var msg2>
>  </dtml-let>
> <dtml-var standard_html_footer>

Why isn't the above just a python script?

return context.your_zpt(
     msg1=resetpassword(myacct='testacct6', mypasswd='findme1.'),
     msg2=testpassword(myacct='testacct6', mypasswd='findme1.')
     )

then in your ZPT:

<i tal:condition="options/msg1|nothing"
    tal:content="options/msg1"/>

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list