conduit r1549 - in trunk: . conduit/modules
- From: johncarr svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1549 - in trunk: . conduit/modules
- Date: Tue, 15 Jul 2008 12:35:51 +0000 (UTC)
Author: johncarr
Date: Tue Jul 15 12:35:51 2008
New Revision: 1549
URL: http://svn.gnome.org/viewvc/conduit?rev=1549&view=rev
Log:
Flesh out converter
Modified:
trunk/ (props changed)
trunk/conduit/modules/SynceModule.py
Modified: trunk/conduit/modules/SynceModule.py
==============================================================================
--- trunk/conduit/modules/SynceModule.py (original)
+++ trunk/conduit/modules/SynceModule.py Tue Jul 15 12:35:51 2008
@@ -282,11 +282,31 @@
return c
def _data_to_blob(self, data):
+ v = data.vcard
doc = xml.dom.minidom.Document()
node = doc.createElement("contact")
- for chunk in data.contents:
- print chunk
+ for chunk in v.contents:
+ if chunk == "account":
+ pass
+ elif chunk == "tel":
+ pass
+ elif chunk == "bday":
+ pass
+ elif chunk == "n":
+ pass
+ elif chunk == "version":
+ pass
+ elif chunk == "org":
+ pass
+ elif chunk == "nickname":
+ pass
+ elif chunk == "email":
+ pass
+ elif chunk == "fn":
+ pass
+ else:
+ log.warning("Unhandled chunk (%s)" % chunk)
doc.appendChild(node)
return doc.toxml()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]