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):