[conduit/tracker] Don't autocommit new tracker objects
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker] Don't autocommit new tracker objects
- Date: Mon, 15 Jun 2009 00:46:20 -0400 (EDT)
commit 7b72420bce6549cd0580f064665e992d9531585a
Author: John Carr <john carr unrouted co uk>
Date: Mon Jun 15 05:39:43 2009 +0100
Don't autocommit new tracker objects
conduit/modules/TrackerModule/TrackerModule.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/TrackerModule.py b/conduit/modules/TrackerModule/TrackerModule.py
index 6d7fe7a..bca3d6e 100644
--- a/conduit/modules/TrackerModule/TrackerModule.py
+++ b/conduit/modules/TrackerModule/TrackerModule.py
@@ -70,7 +70,7 @@ class TrackerContacts(DataProvider.TwoWay):
def _vcard_to_tracker(self, data):
vcard = data.vcard
- c = nco.PersonContact.create()
+ c = nco.PersonContact.create(commit=False)
for k, v in vcard.contents.iteritems():
if k == "account":
@@ -200,9 +200,6 @@ class TrackerContacts(DataProvider.TwoWay):
prefix=tracker.namehonorificprefix, suffix=tracker.namehonorificsuffix)
c.vcard.n.value = n
- if tracker.addresslocation:
- pass
-
return c
def get_UID(self):
@@ -258,7 +255,7 @@ class TrackerCalendar(DataProvider.TwoWay):
def _ical_to_tracker(self, data):
ical = data.iCal
- c = ncal.Event.create()
+ c = ncal.Event.create(commit=False)
for k, v in ical.contents.iteritems():
if k == "description":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]