Mercurial > libervia-backend
comparison src/tools/xml_tools.py @ 304:e04ccf122bb6
microblog sending
- Bridge: added sendPersonalEvent to DBus frontend
- plugin XEP_0277: * fixed unicode issue
* node options are now changed instead of node being deleted/recreated for setMicroblogAccess
- xml_tools: fixed unicode issue
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Mar 2011 17:51:19 +0100 |
parents | 0e54b1b0a8c8 |
children | cf005701624b |
comparison
equal
deleted
inserted
replaced
303:2b52a5da0978 | 304:e04ccf122bb6 |
---|---|
322 parser.DocumentStartEvent = onStart | 322 parser.DocumentStartEvent = onStart |
323 parser.ElementEvent = onElement | 323 parser.ElementEvent = onElement |
324 parser.DocumentEndEvent = onEnd | 324 parser.DocumentEndEvent = onEnd |
325 tmp = domish.Element(("", "s")) | 325 tmp = domish.Element(("", "s")) |
326 tmp.addRawXml(s.replace('\n','').replace('\t','')) | 326 tmp.addRawXml(s.replace('\n','').replace('\t','')) |
327 parser.parse(tmp.toXml()) | 327 parser.parse(tmp.toXml().encode('utf-8')) |
328 return self.result.firstChildElement() | 328 return self.result.firstChildElement() |