[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-10-15 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for the test case, committed the fix and the new test in r85546. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-10-14 Thread karl
karl karl+pythonb...@la-grange.net added the comment: This following markup creates the mistake as described earlier in the comments element xmlns= b class=foo alt=/ /element This markup doesn't element xmlns=bla b class=foo alt=/ /element It returns ?xml version=1.0 ?element xmlns=bla b

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-09-23 Thread Brian Bernstein
Brian Bernstein bernie9...@gmail.com added the comment: Experiencing this issue too. It occurs when an xml element contains a blank xmlns attribute, e.g.: {{{ element xmlns=/ }}} When toxml() is called on a minidom document with this attribute, the exception occurs. I am including a simple

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-09-23 Thread Brian Bernstein
Changes by Brian Bernstein bernie9...@gmail.com: -- versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___ ___

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This issue will not move unless somebody provides a unit test for it. -- nosy: +BreamoreBoy stage: - unit test needed type: crash - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-05-06 Thread Francesco Sechi
Changes by Francesco Sechi francesco.se...@iet.unipi.it: -- nosy: +sechi_francesco ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___ ___

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-05-06 Thread Francesco Sechi
Francesco Sechi francesco.se...@iet.unipi.it added the comment: I'm not able to reproduce the issue. Why don't you submit the unit test that generates the problem? Thanks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-20 Thread Husen daudi
Husen daudi h...@openerp.co.in added the comment: I have solved this error, My tag has None value for one attribute. But python should check for None value in _write_data function. -- ___ Python tracker rep...@bugs.python.org

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-15 Thread Husen daudi
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

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-15 Thread Robert Xiao
Robert Xiao nneon...@gmail.com added the comment: Have you tried this with xml.dom.minidom? -- nosy: +nneonneo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-15 Thread Husen daudi
Husen daudi h...@openerp.co.in added the comment: Yes I am using xml.dom.minidom doc.toprettyxml(indent=\t).encode('utf-8') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___