* src/Date.py (is_empty): Consider non-text-only date with

empty numerical fields an empty date.


svn: r5320
This commit is contained in:
Alex Roitman 2005-10-14 16:32:07 +00:00
parent 23828c68ce
commit 7441034117
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-10-14 Alex Roitman <shura@gramps-project.org>
* src/Date.py (is_empty): Consider non-text-only date with
empty numerical fields an empty date.
2005-10-14 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/plugins/TestcaseGenerator.py: Randomize SourceRefs

View File

@ -511,7 +511,8 @@ class Date:
"""
Returns True if the date contains no information (empty text).
"""
return self.modifier == MOD_TEXTONLY and not self.text
return (self.modifier == MOD_TEXTONLY and not self.text) or \
(self.get_start_date()==EMPTY and self.get_stop_date()==EMPTY)
def is_compound(self):
"""