appy.gen: first Ploneless version.

This commit is contained in:
Gaetan Delannay 2011-11-25 18:01:20 +01:00
parent 5672c81553
commit d0cbe7e573
360 changed files with 1003 additions and 1017 deletions

View file

@ -1,3 +1,6 @@
# ------------------------------------------------------------------------------
import cgi
# ------------------------------------------------------------------------------
class OdtTable:
'''This class allows to construct an ODT table programmatically.'''
@ -38,7 +41,8 @@ class OdtTable:
'%snumber-columns-spanned="%d">' % \
(self.tns, self.tns, cellStyle, self.tns, span)
self.res += '<%sp %sstyle-name="%s">%s</%sp>' % \
(self.txns, self.txns, paraStyle, content, self.txns)
(self.txns, self.txns, paraStyle, cgi.escape(str(content)),
self.txns)
self.res += '</%stable-cell>' % self.tns
def startRow(self):