5293: age='unknown' for after/after and before/before dates (age calculation)
svn: r18298
This commit is contained in:
parent
1740803a58
commit
1bc8f8a79c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user