returning a dtml variable to a page template
<dtml-var standard_html_header> <dtml-let msg="resetpassword(myacct='testacct6', mypasswd='findme1.')"> <dtml-var msg> </dtml-let><br> <dtml-let msg2="testpassword(myacct='testacct6', mypasswd='findme1.')"> <dtml-var msg2> </dtml-let> <dtml-var standard_html_footer> Is there a way to send the variable msg and msg2 to a zope page template instead of displaying the results from dtml? Thanks.
ever looked at dtml-return? -aj --On Donnerstag, 23. September 2004 9:00 Uhr -0500 Laura McCord <Laura.McCord@doucet-austin.com> wrote:
<dtml-var standard_html_header> <dtml-let msg="resetpassword(myacct='testacct6', mypasswd='findme1.')"> <dtml-var msg> </dtml-let><br> <dtml-let msg2="testpassword(myacct='testacct6', mypasswd='findme1.')"> <dtml-var msg2> </dtml-let> <dtml-var standard_html_footer>
Is there a way to send the variable msg and msg2 to a zope page template instead of displaying the results from dtml?
Thanks. _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
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
participants (3)
-
Andreas Jung -
Chris Withers -
Laura McCord