2005-08-17 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* 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). svn: r5091
This commit is contained in:
parent
d51cd767e0
commit
63a66789a8
@ -1,3 +1,9 @@
|
|||||||
|
2005-08-17 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
|
||||||
|
* 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 <eerot@sf>
|
2005-08-17 Eero Tamminen <eerot@sf>
|
||||||
* src/po/fi.po: Fix/improve Finnish translations
|
* src/po/fi.po: Fix/improve Finnish translations
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import os
|
import os
|
||||||
|
from time import localtime
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -184,7 +185,7 @@ class CalendarWriter:
|
|||||||
|
|
||||||
self.writeln("BEGIN:VCALENDAR");
|
self.writeln("BEGIN:VCALENDAR");
|
||||||
self.writeln("PRODID:-//GNU//Gramps//EN");
|
self.writeln("PRODID:-//GNU//Gramps//EN");
|
||||||
self.writeln("Version:1.0");
|
self.writeln("VERSION:1.0");
|
||||||
for key in self.plist:
|
for key in self.plist:
|
||||||
self.write_person(key)
|
self.write_person(key)
|
||||||
|
|
||||||
@ -206,7 +207,7 @@ class CalendarWriter:
|
|||||||
if event.get_name() == "Marriage":
|
if event.get_name() == "Marriage":
|
||||||
m_date = event.get_date_object()
|
m_date = event.get_date_object()
|
||||||
place_handle = event.get_place_handle()
|
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:
|
if place_handle:
|
||||||
place = self.db.get_place_from_handle(place_handle)
|
place = self.db.get_place_from_handle(place_handle)
|
||||||
self.write_vevent( text, m_date, place.get_title())
|
self.write_vevent( text, m_date, place.get_title())
|
||||||
|
Loading…
Reference in New Issue
Block a user