From c6a8810305879339fad3f245154d08c2b53d85de Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Wed, 9 Jan 2008 16:34:19 +0000 Subject: [PATCH] 2008-01-09 Raphael Ackermann * src/plugins/ExportVCard.py: in write_person use b_date instead of date svn: r9766 --- ChangeLog | 4 ++++ src/plugins/ExportVCard.py | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 702d6225e..80af71f30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-09 Raphael Ackermann + * src/plugins/ExportVCard.py: in write_person use b_date instead of date + 0001497: small typo and imports cleanup in ExportVCard.py + 2008-01-09 Raphael Ackermann * src/GrampsDbUtils/_GrampsBSDDB.py: wrong const import diff --git a/src/plugins/ExportVCard.py b/src/plugins/ExportVCard.py index d5aa0fddc..6caf3645d 100644 --- a/src/plugins/ExportVCard.py +++ b/src/plugins/ExportVCard.py @@ -43,7 +43,6 @@ log = logging.getLogger(".ExportVCard") # GNOME/GTK modules # #------------------------------------------------------------------------- -import gtk import gtk.glade #------------------------------------------------------------------------- @@ -52,7 +51,6 @@ import gtk.glade # #------------------------------------------------------------------------- from Filters import GenericFilter, Rules, build_filter_menu -import const from gen.lib import Date import Errors from QuestionDialog import ErrorDialog @@ -213,7 +211,7 @@ class CardWriter: if birth: b_date = birth.get_date_object() mod = b_date.get_modifier() - if (date.get_modifier() != Date.MOD_TEXTONLY and + if (mod != Date.MOD_TEXTONLY and not b_date.is_empty() and not mod == Date.MOD_SPAN and not mod == Date.MOD_RANGE):