Fixed date save format, fixed parsing of embedded URL's

svn: r63
This commit is contained in:
Don Allingham 2001-05-26 15:21:22 +00:00
parent 4e0a6483ff
commit 82af7485fb
2 changed files with 3 additions and 3 deletions

View File

@ -120,11 +120,11 @@ class Date:
#--------------------------------------------------------------------
def getSaveDate(self):
if self.range == 1:
return "FROM " + self.start.getFmt3() + " TO " + self.stop.getFmt3()
return "FROM " + self.start.getSaveDate() + " TO " + self.stop.getSaveDate()
elif self.range == -1:
return self.text
else:
return self.start.getFmt3()
return self.start.getSaveDate()
def isEmpty(self):
if self.start.year == -1 and self.start.month == -1 and self.start.day == -1:

View File

@ -770,7 +770,7 @@ class GrampsParser(handler.ContentHandler):
"suffix" : (None, stop_suffix),
"title" : (None, stop_title),
"uid" : (None, stop_uid),
"url" : (None, start_url)
"url" : (start_url, None)
}
#---------------------------------------------------------------------