diff --git a/roundup/date.py b/roundup/date.py
index 94db02e986bbc7a450ef5b64a535db7f5c9c613d..a7f212a553c0ca3c15a9a96db610c37afe49beb6 100644 (file)
--- a/roundup/date.py
+++ b/roundup/date.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: date.py,v 1.22 2002-07-14 06:05:50 richard Exp $
+# $Id: date.py,v 1.23 2002-07-18 23:07:08 richard Exp $
__doc__ = """
Date, time and time interval handling.
if other is None:
return 1
for attr in ('year', 'month', 'day', 'hour', 'minute', 'second'):
+ if not hasattr(other, attr):
+ return 1
r = cmp(getattr(self, attr), getattr(other, attr))
if r: return r
return 0
if other is None:
return 1
for attr in ('year', 'month', 'day', 'hour', 'minute', 'second'):
+ if not hasattr(other, attr):
+ return 1
r = cmp(getattr(self, attr), getattr(other, attr))
if r: return r
return 0
#
# $Log: not supported by cvs2svn $
+# Revision 1.22 2002/07/14 06:05:50 richard
+# . fixed the date module so that Date(". - 2d") works
+#
# Revision 1.21 2002/05/15 06:32:46 richard
# . reverting to dates for intervals > 2 months sucks
#