update lml, correct export
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Sun, 30 Jan 2011 22:10:59 +0100
changeset 31 93fd53a97d6d
parent 30 0f1a2764ad18
child 32 c924e143576f
update lml, correct export
.hgignore
script/lib/iri_tweet/export_twitter_alchemy.py
script/virtualenv/res/lxml-2.2.7.tar.gz
script/virtualenv/res/lxml-2.2.8.tar.gz
--- a/.hgignore	Sat Jan 29 06:34:45 2011 +0100
+++ b/.hgignore	Sun Jan 30 22:10:59 2011 +0100
@@ -17,3 +17,7 @@
 
 syntax: regexp
 log.txt$
+
+syntax: regexp
+\.DS_Store$
+\.pyc
--- a/script/lib/iri_tweet/export_twitter_alchemy.py	Sat Jan 29 06:34:45 2011 +0100
+++ b/script/lib/iri_tweet/export_twitter_alchemy.py	Sun Jan 30 22:10:59 2011 +0100
@@ -199,13 +199,13 @@
                         media_nodes = root.xpath("//media")
                         if len(media_nodes) > 0:
                             media = media_nodes[0]
-                            annotations_node = root.find(u"annotations")
-                            if annotations_node is None:
-                                annotations_node = etree.SubElement(root, u"annotations")
-                            content_node = annotations_node.find(u"content")
-                            if content_node is None:
-                                content_node = etree.SubElement(annotations_node,u"content", id=media["id"])
-                            ensemble_parent = content_node
+                        annotations_node = root.find(u"annotations")
+                        if annotations_node is None:
+                            annotations_node = etree.SubElement(root, u"annotations")
+                        content_node = annotations_node.find(u"content")
+                        if content_node is None:
+                            content_node = etree.SubElement(annotations_node,u"content", id=media.get(u"id"))
+                        ensemble_parent = content_node
                     elif file_type == "iri":
                         body_node = root.find(u"body")
                         if body_node is None:
Binary file script/virtualenv/res/lxml-2.2.7.tar.gz has changed
Binary file script/virtualenv/res/lxml-2.2.8.tar.gz has changed