diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a44808855..55cae68a3 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,9 @@ +2005-08-17 Richard Taylor + * src/plugins/ExportVCalendar.py: fixed import for localtime, + corrected type of Utils and params to Until.family_name + made "Version" upper case as demanded by Korganiser and + the spec (I think). + 2005-08-17 Eero Tamminen * src/po/fi.po: Fix/improve Finnish translations diff --git a/gramps2/src/plugins/ExportVCalendar.py b/gramps2/src/plugins/ExportVCalendar.py index 9b33852cb..7b850b63c 100644 --- a/gramps2/src/plugins/ExportVCalendar.py +++ b/gramps2/src/plugins/ExportVCalendar.py @@ -28,6 +28,7 @@ # #------------------------------------------------------------------------- import os +from time import localtime #------------------------------------------------------------------------- # @@ -184,7 +185,7 @@ class CalendarWriter: self.writeln("BEGIN:VCALENDAR"); self.writeln("PRODID:-//GNU//Gramps//EN"); - self.writeln("Version:1.0"); + self.writeln("VERSION:1.0"); for key in self.plist: self.write_person(key) @@ -206,7 +207,7 @@ class CalendarWriter: if event.get_name() == "Marriage": m_date = event.get_date_object() place_handle = event.get_place_handle() - text = _("Marriage of %s") % Utlis.family_name(family) + text = _("Marriage of %s") % Utils.family_name(family,self.db) if place_handle: place = self.db.get_place_from_handle(place_handle) self.write_vevent( text, m_date, place.get_title())