Commit 1f2a0359 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in Document resizing. Source text was not HTML quoted.

parent 8f3c20c3
"""Document object""" """Document object"""
__version__='$Revision: 1.56 $'[11:-2] __version__='$Revision: 1.57 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower from string import join,split,strip,rfind,atoi,lower
...@@ -156,7 +156,8 @@ class Document(cDocumentTemplate.cDocument, HTML, Explicit, ...@@ -156,7 +156,8 @@ class Document(cDocumentTemplate.cDocument, HTML, Explicit,
resp=REQUEST['RESPONSE'] resp=REQUEST['RESPONSE']
resp.setCookie('dtpref_rows',str(rows),path='/',expires=e) resp.setCookie('dtpref_rows',str(rows),path='/',expires=e)
resp.setCookie('dtpref_cols',str(cols),path='/',expires=e) resp.setCookie('dtpref_cols',str(cols),path='/',expires=e)
return self.manage_main(self,REQUEST,title=title,__str__=data, return self.manage_main(
self,REQUEST,title=title,__str__=self.quotedHTML(data),
dtpref_cols=cols,dtpref_rows=rows) dtpref_cols=cols,dtpref_rows=rows)
def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='50', def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='50',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment