appy.gen: first Ploneless version.
This commit is contained in:
parent
5672c81553
commit
d0cbe7e573
360 changed files with 1003 additions and 1017 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue