[conduit/tracker] Map phone number and email address
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker] Map phone number and email address
- Date: Mon, 15 Jun 2009 09:38:30 -0400 (EDT)
commit 20e57d205df8852e94e6930c7b9628575440c1ac
Author: John Carr <john carr unrouted co uk>
Date: Mon Jun 15 14:35:28 2009 +0100
Map phone number and email address
conduit/modules/TrackerModule/TrackerModule.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/TrackerModule.py b/conduit/modules/TrackerModule/TrackerModule.py
index e5fd820..d8707a5 100644
--- a/conduit/modules/TrackerModule/TrackerModule.py
+++ b/conduit/modules/TrackerModule/TrackerModule.py
@@ -76,7 +76,8 @@ class TrackerContacts(DataProvider.TwoWay):
if k == "account":
pass
elif k == "tel":
- pass
+ pn = nco.PhoneNumber(phonenumber=v[0].value)
+ c.hasphonenumber = pn
elif k == "bday":
c.birthdate = v[0].value
elif k == "n":
@@ -110,7 +111,8 @@ class TrackerContacts(DataProvider.TwoWay):
elif k == "nickname":
c.nickname = v[0].value
elif k == "email":
- pass
+ ea = nco.EmailAddress(emailaddress=v[0].value)
+ c.hasemailaddress = ea
elif k == "fn":
c.fullname = v[0].value
elif k == "x-gender":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]