* src/Date.py (is_empty): Consider non-text-only date with
empty numerical fields an empty date. svn: r5320
This commit is contained in:
parent
23828c68ce
commit
7441034117
@ -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>
|
2005-10-14 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/plugins/TestcaseGenerator.py: Randomize SourceRefs
|
* src/plugins/TestcaseGenerator.py: Randomize SourceRefs
|
||||||
|
|
||||||
|
@ -511,7 +511,8 @@ class Date:
|
|||||||
"""
|
"""
|
||||||
Returns True if the date contains no information (empty text).
|
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):
|
def is_compound(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user