2006-07-18 Don Allingham <don@gramps-project.org>

* src/RelLib/_DateBase.py: fix the date comparison for text only 
	dates



svn: r7038
This commit is contained in:
Don Allingham 2006-07-19 03:48:21 +00:00
parent 314a103f8d
commit 7d1d821da8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-07-18 Don Allingham <don@gramps-project.org>
* src/RelLib/_DateBase.py: fix the date comparison for text only
dates
2006-07-17 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: typo
* src/plugins/NarrativeWeb.py: fix name sorting in Windows (bug #236)

View File

@ -54,7 +54,7 @@ class DateBase:
self.date = Date()
def serialize(self):
if self.date == None or self.date.is_empty():
if self.date == None or (self.date.is_empty() and not self.date.text):
date = None
else:
date = self.date.serialize()