#300 SharePoint compatibility

open
nobody
None
5
2011-09-10
2011-09-10
No

Sharepoint likes to give back results in empty tags with lots of attributes. (Insert MS bashing here).
soappy first takes this kind as simple type then cannot convert it to any simple type.
The following patch makes it possible to retrieve such data from SPS

diff --git a/Parser.py b/Parser.py
index 7423fd8..ee82581 100644
--- a/Parser.py
+++ b/Parser.py
@@ -374,7 +374,7 @@ class SOAPParser(xml.sax.handler.ContentHandler):
data = self.convertType(string.join(self._data, ""),
kind, attrs)
except UnknownTypeError:
- data = None
+ data = structType(name = (ns, name), attrs = attrs)
else:
data = None

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks