[conduit/tracker] Fix vcard to NCO for phone number and email address
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker] Fix vcard to NCO for phone number and email address
- Date: Fri, 19 Jun 2009 19:24:28 -0400 (EDT)
commit ebbd119ab262c4ccfe4e29879505577a3acaf229
Author: John Carr <john carr unrouted co uk>
Date: Tue Jun 16 18:12:15 2009 +0100
Fix vcard to NCO for phone number and email address
conduit/modules/TrackerModule/TrackerModule.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/TrackerModule.py b/conduit/modules/TrackerModule/TrackerModule.py
index d04be5e..d09a55d 100644
--- a/conduit/modules/TrackerModule/TrackerModule.py
+++ b/conduit/modules/TrackerModule/TrackerModule.py
@@ -76,7 +76,7 @@ class TrackerContacts(DataProvider.TwoWay):
if k == "account":
pass
elif k == "tel":
- pn = nco.PhoneNumber(phonenumber=v[0].value)
+ pn = nco.PhoneNumber.create(phonenumber=v[0].value)
c.hasphonenumber = pn
elif k == "bday":
c.birthdate = v[0].value
@@ -111,7 +111,7 @@ class TrackerContacts(DataProvider.TwoWay):
elif k == "nickname":
c.nickname = v[0].value
elif k == "email":
- ea = nco.EmailAddress(emailaddress=v[0].value)
+ ea = nco.EmailAddress.create(emailaddress=v[0].value)
c.hasemailaddress = ea
elif k == "fn":
c.fullname = v[0].value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]