[conduit/tracker] Ignore some values in tracker
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker] Ignore some values in tracker
- Date: Fri, 19 Jun 2009 19:35:21 -0400 (EDT)
commit ac02247ec3957b4554de5164a537bd57c091e301
Author: John Carr <john carr unrouted co uk>
Date: Fri Jun 19 09:28:14 2009 +0100
Ignore some values in tracker
conduit/modules/TrackerModule/TrackerModule.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/TrackerModule.py b/conduit/modules/TrackerModule/TrackerModule.py
index 187e848..d978e52 100644
--- a/conduit/modules/TrackerModule/TrackerModule.py
+++ b/conduit/modules/TrackerModule/TrackerModule.py
@@ -136,7 +136,9 @@ class TrackerContacts(DataProvider.TwoWay):
c.vcard.n.value = name
for key, value in tracker.properties():
- if key == "nco:gender":
+ if key in ("rdf:type", "tracker:modified", "dc:identifier", "nie:identifier"):
+ continue
+ elif key == "nco:gender":
c.vcard.add('x-gender').value = value
elif key == "nco:fullname":
c.vcard.fn.value = value
@@ -389,7 +391,9 @@ class TrackerCalendar(DataProvider.TwoWay):
ev = e.iCal.add('vevent')
for key, value in tracker.properties():
- if key == "ncal:description":
+ if key in ("rdf:type", "tracker:modified", "dc:identifier", "nie:identifier"):
+ continue
+ elif key == "ncal:description":
ev.add("description").value = value
elif key == "ncal:summary":
ev.add("summary").value = value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]