X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Fhtmltemplate.py;h=1a083b056711fdf9193e0fa013c73145487bd7e1;hb=e6c4c7f8d5631098772610818c9907b51081dac2;hp=46a2111e8b6196e17cb9919b98a5b9bdc5e646d6;hpb=618857de4dd80fb4bb6c084499634b825461232e;p=roundup.git
diff --git a/roundup/htmltemplate.py b/roundup/htmltemplate.py
index 46a2111..1a083b0 100644
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
@@ -15,7 +15,7 @@
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.37 2001-10-31 06:24:35 richard Exp $
+# $Id: htmltemplate.py,v 1.38 2001-10-31 06:58:51 richard Exp $
import os, re, StringIO, urllib, cgi, errno
@@ -28,7 +28,6 @@ try:
except ImportError:
StructuredText = None
-
class TemplateFunctions:
def __init__(self):
self.form = None
@@ -79,7 +78,7 @@ class TemplateFunctions:
else:
s = 'Plain: bad propclass "%s"'%propclass
if escape:
- return cgi.escape(value)
+ value = cgi.escape(value)
return value
def do_stext(self, property, escape=0):
@@ -387,8 +386,8 @@ class TemplateFunctions:
go along with a change.
'''
# TODO: pull the value from the form
- return ''%(rows,
- cols)
+ return ''%(rows, cols)
# XXX new function
def do_list(self, property, reverse=0):
@@ -844,6 +843,9 @@ class NewItemTemplate(TemplateFunctions):
#
# $Log: not supported by cvs2svn $
+# Revision 1.37 2001/10/31 06:24:35 richard
+# Added do_stext to htmltemplate, thanks Brad Clements.
+#
# Revision 1.36 2001/10/28 22:51:38 richard
# Fixed ENOENT/WindowsError thing, thanks Juergen Hermann
#