I have a ZSQL method that has an associated class. That class defines 
a method eventday(self) that returns just the date portion of a datetime 

I want to be able to use  <dtml-if first-eventday> to print the date only 
when it changes.

However first-eventday is ALWAYS true, however when I print &dtml-
eventday; the output value is always the same for each row, so first-
eventday shouldn't be true on any row except the first.

I've been looking at dt_insv.py, I assume that eventday() isn't seen as a 
true variable in self.data, so ... 

Any suggestions for how I can easily simulate first-nnn for a datetime 
when I only want to key off the date portion?

Brad Clements,                [EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements

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

Reply via email to