[conduit/tracker] dtstart and dtend are instances of NcalDateTime
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker] dtstart and dtend are instances of NcalDateTime
- Date: Fri, 19 Jun 2009 19:25:08 -0400 (EDT)
commit 0e8b95ba2d85a6f297733cf3f583b0cf5f077db9
Author: John Carr <john carr unrouted co uk>
Date: Wed Jun 17 00:16:28 2009 +0100
dtstart and dtend are instances of NcalDateTime
conduit/modules/TrackerModule/TrackerModule.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/TrackerModule.py b/conduit/modules/TrackerModule/TrackerModule.py
index 9653f87..e8860a6 100644
--- a/conduit/modules/TrackerModule/TrackerModule.py
+++ b/conduit/modules/TrackerModule/TrackerModule.py
@@ -267,9 +267,9 @@ class TrackerCalendar(DataProvider.TwoWay):
elif k == "summary":
c.summary = v
elif k == "dtstart":
- c.dtstart = v
+ c.dtstart = ncal.NcalDateTime.create(datetime=v)
elif k == "dtend":
- c.dtend = v
+ c.dtend = ncal.NcalDateTime.create(datetime=v)
elif k == "duration":
c.duration = v
elif k == "uid":
@@ -307,9 +307,11 @@ class TrackerCalendar(DataProvider.TwoWay):
elif key == "ncal:summary":
ev.add("summary").value = value
elif key == "ncal:dtstart":
- ev.add('dtstart').value = value
+ dt = ncal.NcalDateTime(value)
+ ev.add('dtstart').value = dt.datetime
elif key == "ncal:dtend":
- ev.add('dtend').value = value
+ dt = ncal.NcalDateTime(value)
+ ev.add('dtend').value = dt.datetime
elif key == "ncal:duration":
ev.add('duration').value = value
elif key == "ncal:uid":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]