New submission from Husen daudi <h...@openerp.co.in>: [2009-04-15 17:53:10,198] ERROR:web-services:[19]: _write_data(writer, attrs[a_name].value) [2009-04-15 17:53:10,198] ERROR:web-services:[20]: File "/usr/lib/python2.5/site-packages/oldxml/_xmlplus/dom/minidom.py", line 305, in _write_data [2009-04-15 17:53:10,199] ERROR:web-services:[21]: data = data.replace("&", "&").replace("<", "<") [2009-04-15 17:53:10,199] ERROR:web-services:[22]: AttributeError: 'NoneType' object has no attribute 'replace'
_write_data dunction should be something like this def _write_data(writer, data): "Writes datachars to writer." if data: data = data.replace("&", "&").replace("<", "<") data = data.replace("\"", """).replace(">", ">") writer.write(data) ---------- components: XML messages: 85990 nosy: hda severity: normal status: open title: AttributeError: 'NoneType' object has no attribute 'replace' type: crash versions: Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5762> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com