add note stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 15 Sep 2009 16:33:30 +0200
branchstable
changeset 3236 df31dbf3225e
parent 3235 bad0ff9b0c13
child 3256 e39699c44299
add note
web/views/baseviews.py
--- a/web/views/baseviews.py	Tue Sep 15 16:31:45 2009 +0200
+++ b/web/views/baseviews.py	Tue Sep 15 16:33:30 2009 +0200
@@ -82,6 +82,9 @@
             if etype == 'Interval' and isinstance(value, (int, long)):
                 # `date - date`, unlike `datetime - datetime` gives an int
                 # (number of days), not a timedelta
+                # XXX should rql be fixed to return Int instead of Interval in
+                #     that case? that would be probably the proper fix but we
+                #     loose information on the way...
                 value = timedelta(days=value)
             # value is DateTimeDelta but we have no idea about what is the
             # reference date here, so we can only approximate years and months