On Fri, Jul 21, 2000 at 10:05:08AM +0100, Chris Withers wrote:
> [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
------------------------------------------------------

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to