many thanks. I suppose I did not understand that a request.form object is given all objects 'requested' even if they are a macro in a template that is called by another template, or a fill-slot that is satisfied by another template.<br>
<br><div><span class="gmail_quote">On 9/5/08, <b class="gmail_sendername">Andreas Jung</b> <<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<span class="q"><br><br> --On 5. September 2008 13:05:23 -0700 David Bear <<a href="mailto:David.Bear@asu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">David.Bear@asu.edu</a>> wrote:<br>
<br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"> I would like to test the value of a field entered on a form in a zpt, but<br>
I'm don't know the syntax<br><br> basically I would like to do something like this<br><br> <div tal:condition="request/form/fieldA=1"> do this<br> <p metal:use-macro="here/atemplate/macros/may" /><br>
</div><br></blockquote><br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
but this doesn't seem to want to work.<br></blockquote><br></span> See<br><br> <<a href="http://www.plope.com/Books/2_7Edition/AdvZPT.stx#2-19" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.plope.com/Books/2_7Edition/AdvZPT.stx#2-19</a>><span class="q"><br>
<br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"><br> Also, I would like to be able to use the same request object in both my<br>
template and the macro, but my macro doesn's seem to have access to the<br> same request object.<br></blockquote><br></span> This statement is likely wrong since the 'request' is always available - and of course there is only 'request' object over the lifetime of a HTTP request.<br>
<br> -aj<br><span class="sg"><br><br><br> -aj</span><br>_______________________________________________<br> Zope maillist - <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Zope@zope.org">Zope@zope.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br> ** No cross posts or HTML encoding! **<br> (Related lists -<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
<br><br clear="all"></blockquote></div><br><br clear="all"><br>-- <br>David Bear<br>College of Public Programs at ASU<br>602-464-0424