5293: age='unknown' for after/after and before/before dates (age calculation)

svn: r18298
This commit is contained in:
Jérôme Rapinat 2011-10-12 16:30:18 +00:00
parent 1740803a58
commit 1bc8f8a79c

View File

@ -336,7 +336,7 @@ class Span(object):
#v = self.date1.sortval - self.date2.sortval #v = self.date1.sortval - self.date2.sortval
#self.sort = (v, -Span.BEFORE) #self.sort = (v, -Span.BEFORE)
#self.minmax = (v, v + Span.BEFORE) #self.minmax = (v, v + Span.BEFORE)
self.repr = _("more than about") + " " + self._format(self._diff(self.date1, self.date2)) self.repr = self._format((-1, -1 , -1))
elif self.date2.get_modifier() == Date.MOD_AFTER: elif self.date2.get_modifier() == Date.MOD_AFTER:
#v = self.date1.sortval - self.date2.sortval #v = self.date1.sortval - self.date2.sortval
#self.sort = (v, -Span.AFTER) #self.sort = (v, -Span.AFTER)
@ -369,7 +369,7 @@ class Span(object):
#v = self.date1.sortval - self.date2.sortval #v = self.date1.sortval - self.date2.sortval
#self.sort = (v, Span.AFTER) #self.sort = (v, Span.AFTER)
#self.minmax = (v, v + Span.AFTER) #self.minmax = (v, v + Span.AFTER)
self.repr = _("more than") + " " + self._format(self._diff(self.date1, self.date2)) self.repr = self._format((-1, -1 , -1))
elif self.date2.get_modifier() == Date.MOD_ABOUT: elif self.date2.get_modifier() == Date.MOD_ABOUT:
#v = self.date1.sortval - self.date2.sortval #v = self.date1.sortval - self.date2.sortval
#self.sort = (v, -Span.ABOUT) #self.sort = (v, -Span.ABOUT)