Mercurial > p > roundup > code
diff roundup/htmltemplate.py @ 640:7dd13fd5d8ea
fixed some problems in date calculations
(calendar.py doesn't handle over- and under-flow). Also,
hour/minute/second intervals may now be more than 99 each.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 21 Feb 2002 23:11:45 +0000 |
| parents | 2f3e82a69eb5 |
| children | 6257d4e49d2a |
line wrap: on
line diff
--- a/roundup/htmltemplate.py Thu Feb 21 07:21:38 2002 +0000 +++ b/roundup/htmltemplate.py Thu Feb 21 23:11:45 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: htmltemplate.py,v 1.81 2002-02-21 07:21:38 richard Exp $ +# $Id: htmltemplate.py,v 1.82 2002-02-21 23:11:45 richard Exp $ __doc__ = """ Template engine. @@ -400,7 +400,7 @@ return '' # figure the interval - interval = value - date.Date('.') + interval = date.Date('.') - value if pretty: if not self.nodeid: return _('now') @@ -1091,6 +1091,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.81 2002/02/21 07:21:38 richard +# docco +# # Revision 1.80 2002/02/21 07:19:08 richard # ... and label, width and height control for extra flavour! #
