Fixed date save format, fixed parsing of embedded URL's
svn: r63
This commit is contained in:
parent
4e0a6483ff
commit
82af7485fb
@ -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:
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user