cmislib fix for CMIS-703 which is to remove the CDATA from the cmis:statement that gets posted by a query

git-svn-id: https://svn.apache.org/repos/asf/chemistry/cmislib/trunk@1513315 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/cmislib/atompub_binding.py b/src/cmislib/atompub_binding.py
index 301c92e..3c46cb7 100644
--- a/src/cmislib/atompub_binding.py
+++ b/src/cmislib/atompub_binding.py
@@ -1593,6 +1593,11 @@
         # build the CMIS query XML that we're going to POST
         xmlDoc = self._getQueryXmlDoc(statement, **kwargs)
 
+        # debug
+        f = open('/var/tmp/query.xml', 'w')
+        f.write(xmlDoc.toxml(encoding='utf-8'))
+        f.close()
+
         # do the POST
         #print 'posting:%s' % xmlDoc.toxml(encoding='utf-8')
         result = self._cmisClient.binding.post(queryUrl.encode('utf-8'),
@@ -1944,8 +1949,11 @@
         cmisXmlDoc.appendChild(queryElement)
 
         statementElement = cmisXmlDoc.createElementNS(CMIS_NS, "statement")
-        cdataSection = cmisXmlDoc.createCDATASection(query)
-        statementElement.appendChild(cdataSection)
+        #CMIS-703
+        #cdataSection = cmisXmlDoc.createCDATASection(query)
+        #statementElement.appendChild(cdataSection)
+        textNode = cmisXmlDoc.createTextNode(query)
+        statementElement.appendChild(textNode)
         queryElement.appendChild(statementElement)
 
         for (k, v) in kwargs.items():