Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread andres

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 )




Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread Andrew Kenneth Milton

+[ [EMAIL PROTECTED] ]-
|
| 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

Replace the whole mess with:-

input type="TEXT" value="dtml.missing-foo;"


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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 )




Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread andres

Thanks guys,

 
 Replace the whole mess with:-
 
 input type="TEXT" value="dtml.missing-foo;"
 

 input type=text ... value="dtml-var "REQUEST.for['foo']" html_quote
 missing
 
--
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 )




Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread Shane Hathaway

[EMAIL PROTECTED] wrote:
 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

dtml-let value="REQUEST.get('foo', '')"
  input type=text ... value="dtml-value;"
/dtml-let

This is probably the best you're going to get. :-)

Shane

___
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 )