[Zope3-checkins] SVN: Zope3/trunk/src/zope/tales/interfaces.py
Added documentation on the already-existent parity() method
Shane Hathaway
shane at zope.com
Tue Nov 23 15:40:23 EST 2004
Log message for revision 28493:
Added documentation on the already-existent parity() method
Changed:
U Zope3/trunk/src/zope/tales/interfaces.py
-=-
Modified: Zope3/trunk/src/zope/tales/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/tales/interfaces.py 2004-11-23 09:59:50 UTC (rev 28492)
+++ Zope3/trunk/src/zope/tales/interfaces.py 2004-11-23 20:40:21 UTC (rev 28493)
@@ -74,6 +74,12 @@
"""Return whether the current position is odd
"""
+ def parity():
+ """Return 'odd' or 'even' depending on the position's parity
+
+ Useful for assigning CSS class names to table rows.
+ """
+
def start():
"""Return whether the current position is the first position
"""
More information about the Zope3-Checkins
mailing list