summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0428b20)
raw | patch | inline | side by side (parent: 0428b20)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 31 Oct 2001 06:58:51 +0000 (06:58 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 31 Oct 2001 06:58:51 +0000 (06:58 +0000) |
messages wrap sanely.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@353 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@353 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/htmltemplate.py | patch | blob | history |
index 46a2111e8b6196e17cb9919b98a5b9bdc5e646d6..1a083b056711fdf9193e0fa013c73145487bd7e1 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# 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
except ImportError:
StructuredText = None
-
class TemplateFunctions:
def __init__(self):
self.form = None
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):
go along with a change.
'''
# TODO: pull the value from the form
- return '<textarea name="__note" rows=%s cols=%s></textarea>'%(rows,
- cols)
+ return '<textarea name="__note" wrap="hard" rows=%s cols=%s>'\
+ '</textarea>'%(rows, cols)
# XXX new function
def do_list(self, property, reverse=0):
#
# $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
#