Update of /cvsroot/pythonreports/PythonReports/PythonReports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27942
Modified Files:
datatypes.py
Log Message:
_DataBlock.make_element: escape cdata
Index: datatypes.py
===================================================================
RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/datatypes.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** datatypes.py 23 Jun 2007 16:16:46 -0000 1.6
--- datatypes.py 8 Dec 2007 07:11:21 -0000 1.7
***************
*** 1,4 ****
--- 1,5 ----
"""Data types and element primitives, common for templates and printouts"""
"""History:
+ 08-dec-2007 [als] _DataBlock.make_element: escape cdata
23-jun-2007 [als] fix Validator.writexml: since we encode the attributes,
don't convert output data back to unicode (that would
***************
*** 1133,1137 ****
# encoded data is ASCII. non-encoded must be unicode.
_data = unicode(_data)
! _elem.text = _data
return _elem
--- 1134,1138 ----
# encoded data is ASCII. non-encoded must be unicode.
_data = unicode(_data)
! _elem.text = saxutils.escape(_data)
return _elem
|