2007-12-20 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/plugins/ExportVCard.py: fixed date.get_text() as signal for text
	* src/plugins/ExportVCalendar.py: fixed date.get_text() ditto
	* src/plugins/WriteGeneWeb.py: fixed date.get_text() ditto



svn: r9540
This commit is contained in:
Doug Blank 2007-12-20 05:10:24 +00:00
parent a3cc8799ae
commit 0f96422fd0
4 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2007-12-20 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/ExportVCard.py: fixed date.get_text() as signal for text
* src/plugins/ExportVCalendar.py: fixed date.get_text() ditto
* src/plugins/WriteGeneWeb.py: fixed date.get_text() ditto
2007-12-19 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/GrampsCfg.py: added a warning about duplicate pattern

View File

@ -290,8 +290,7 @@ class CalendarWriter:
def format_date(self,date,thisyear=0):
retval = ""
strval = date.get_text()
if strval:
if date.get_modifier() == Date.MOD_TEXTONLY:
return ""
elif not date.is_empty():
mod = date.get_modifier()

View File

@ -213,7 +213,10 @@ class CardWriter:
if birth:
b_date = birth.get_date_object()
mod = b_date.get_modifier()
if not b_date.get_text() and not b_date.is_empty() and not mod == Date.MOD_SPAN and not mod == Date.MOD_RANGE:
if (date.get_modifier() != Date.MOD_TEXTONLY and
not b_date.is_empty() and
not mod == Date.MOD_SPAN and
not mod == Date.MOD_RANGE):
(day,month,year,sl) = b_date.get_start_date()
if day > 0 and month > 0 and year > 0:
self.writeln("BDAY:%s-%02d-%02d" % (year,month,day))

View File

@ -603,10 +603,8 @@ class GeneWebWriter:
def format_date(self,date):
retval = ""
strval = date.get_text()
if strval:
retval = "0(%s)" % self.rem_spaces(strval)
if date.get_modifier() == gen.lib.Date.MOD_TEXTONLY:
retval = "0(%s)" % self.rem_spaces(date.get_text())
elif not date.is_empty():
mod = date.get_modifier()
cal = cal = date.get_calendar()