Merge with 3af437be7931bf6a5831f253db834827875c0182
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Mon, 13 Feb 2012 17:04:35 +0100
changeset 507 7f7fdf4eb06c
parent 487 323b5f770fa0 (diff)
parent 505 b90c2bd832dd (current diff)
child 508 c296bead6659
Merge with 3af437be7931bf6a5831f253db834827875c0182
web/res/fonts/PT_Sans-Narrow-Web-Regular.woff
web/res/fonts/PT_Sans-Web-Regular.woff
--- a/script/utils/export_twitter_alchemy.py	Mon Feb 13 12:47:01 2012 +0100
+++ b/script/utils/export_twitter_alchemy.py	Mon Feb 13 17:04:35 2012 +0100
@@ -331,7 +331,7 @@
                     
                 
                 
-                output_data = etree.tostring(root, encoding="utf-8", method="xml", pretty_print=True, xml_declaration=True)  
+                output_data = etree.tostring(root, encoding="utf-8", method="xml", pretty_print=False, xml_declaration=True)  
                 
                 if content_file and content_file.find("http") == 0:
                     
@@ -342,6 +342,9 @@
                     h = httplib2.Http()
                     resp, content = h.request(content_file, "PUT", headers={'content-type':'application/json'}, body=body)
                     get_logger().debug("write http " + repr(resp) + " content " + content) #@UndefinedVariable
+                    if resp.status != 200:
+                        get_logger().error("Error http " + repr(resp) + " content " + content) #@UndefinedVariable
+                        raise Exception("Error writing content : %d : %s"%(resp.status, resp.reason))                        
                 else:
                     if content_file and os.path.exists(content_file):
                         dest_file_name = content_file