[conduit/tracker] Status and recurrence id properties
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker] Status and recurrence id properties
- Date: Mon, 15 Jun 2009 00:45:40 -0400 (EDT)
commit 8c0edf6595a55c89b36220d9588c42047443e7de
Author: John Carr <john carr unrouted co uk>
Date: Mon Jun 15 04:56:15 2009 +0100
Status and recurrence id properties
conduit/modules/TrackerModule/TrackerModule.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/TrackerModule.py b/conduit/modules/TrackerModule/TrackerModule.py
index 3bdca88..4aa8b95 100644
--- a/conduit/modules/TrackerModule/TrackerModule.py
+++ b/conduit/modules/TrackerModule/TrackerModule.py
@@ -256,6 +256,11 @@ class TrackerCalendar(DataProvider.TwoWay):
c.uid = v
elif k == "url":
c.url = v
+ elif k == 'recurrence-id':
+ c.recurrenceid = v
+ elif k == "status":
+ # 'TENTATIVE' etc to an EventStatus instance
+ pass
else:
log.warning("Unhandled key: %s" % k)
@@ -277,6 +282,11 @@ class TrackerCalendar(DataProvider.TwoWay):
e.ical.add('uid').value = value
elif key == "ncal:url":
e.ical.add('url').value = value
+ elif key == "ncal:recurrenceId":
+ e.ical.add('recurrence-id').value = value
+ elif key == "ncal:status":
+ # An instance of ncal:EventStatus to represent TENTATIVE etc
+ pass
else:
log.warning("Unhandled key: %s" % key)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]