[Zope] Entity syntax and 2.2
andres@corrada.com
andres@corrada.com
Fri, 21 Jul 2000 05:42:23 -0400
On Fri, Jul 21, 2000 at 10:05:08AM +0100, Chris Withers wrote:
> andres@corrada.com wrote:
> >
> > And how about:
> >
> > &dtml.missing-REQUEST.form['foo'];
>
> over my dead body! ;-)
>
> I thought the point of the entity syntax was to keep it simple... which
> including python expressions does not...
>
Okay, let me see how I can roll over you! ;-)
Perhaps you can suggest a simple way to do something like the following:
<dtml-if "REQUEST.form.has_key('foo')">
<dtml-let previouslyEnteredValue="REQUEST.form['foo']>
<input type=text ... value="&dtml-previouslyEnteredValue;">
</dtml-let>
<dtml-else>
<input type=text ... value="">
</dtml-if>
------------------------------------------------------
Andres Corrada-Emmanuel Email: andres@corrada.com
------------------------------------------------------