[Zope] Simple DTML question

Dennis Allison allison at sumeru.stanford.EDU
Fri Aug 27 14:30:57 EDT 2004


I believe sequence-start (managed by the wrapping <DTML-IN>
is None if the sequence is empty.  So the fragment says--
	show the records only if there are any



On Fri, 27 Aug 2004 hpinson at indepthl.com wrote:

> I have a legacy site that uses dtml mostly.  I'm having brainlock 
> here.
> 
> Why does this not work?
> 
> <dtml-if sequence-start>
>   Show records.
> <dtml-else>
>    No records returned.
> </dtml-if>
> 
> Can anyone provide the proper syntax?
> 
> Harlow Pinson
> Indepth Learning
> Email: hpinson at indepthl.com 
> Web: http://www.indepthl.com
> Voice: 505-994-2135
> FAX: 208-475-7678
> 
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 



More information about the Zope mailing list