[Zope] Sequences and SQL

Sean McMains smcmains@nortelnetworks.com
Tue, 20 Jul 1999 10:56:35 -0500


Ok, now that I can get data into a database, I'm working on getting it out
again. A simple table works fine, but I'd like to add alternate-line
shading. This is what I'm trying:

<!--#in getData-->
<!--#if "sequence-even"-->
...
shaded line code
...
<!--#else-->
...
unshaded line code
...
<!--#/if-->

I can submit this to Zope no problem, but when I go to view the page, I get
the standard error message with this in the source:

<!--
 Error type:  
 Error value: sequence
 -->

The error is generated by the line with the IF statement, as I've verified
by changing to to test a different expression. I expect that I'm bumping
into something syntactical, but can't figure out how to fix it! Help from
you more experienced Zopers is appreciated.

Thanks,
Sean McMains