Commit fece6616 authored by sroberts's avatar sroberts

Hmm these two files did not import for some reason.

parent b982a37d
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.22 1999/11/03 16:48:39 brian Exp $''' $Id: HTTPResponse.py,v 1.23 1999/11/03 19:24:45 sroberts Exp $'''
__version__='$Revision: 1.22 $'[11:-2] __version__='$Revision: 1.23 $'[11:-2]
import string, types, sys, regex import string, types, sys, regex
from string import find, rfind, lower, upper, strip, split, join, translate from string import find, rfind, lower, upper, strip, split, join, translate
...@@ -440,7 +440,7 @@ class HTTPResponse(BaseResponse): ...@@ -440,7 +440,7 @@ class HTTPResponse(BaseResponse):
tb=join(tb,'\n') tb=join(tb,'\n')
tb=self.quoteHTML(tb) tb=self.quoteHTML(tb)
if self.debug_mode: _tbopen, _tbclose = '<PRE>', '</PRE>' if self.debug_mode: _tbopen, _tbclose = '<PRE>', '</PRE>'
else: _tbopen, _tbclose = '<!--', '-->' else: _tbopen, _tbclose = '<!--', '>'
return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose) return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose)
def redirect(self, location): def redirect(self, location):
...@@ -510,7 +510,7 @@ class HTTPResponse(BaseResponse): ...@@ -510,7 +510,7 @@ class HTTPResponse(BaseResponse):
"Resource not found", "Resource not found",
"Sorry, the requested Zope resource does not exist.<p>" + "Sorry, the requested Zope resource does not exist.<p>" +
"Check the URL and try again.<p>" + "Check the URL and try again.<p>" +
"\n<!--\n%s\n-->" % entry) "\n<!--\n%s\n>" % entry)
forbiddenError=notFoundError # If a resource is forbidden, forbiddenError=notFoundError # If a resource is forbidden,
# why reveal that it exists? # why reveal that it exists?
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
in favor of a standard xml package once some issues are in favor of a standard xml package once some issues are
worked out.""" worked out."""
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
import sys, os, string import sys, os, string
import Shared.DC.xml.xmllib import Shared.DC.xml.xmllib
...@@ -354,7 +354,7 @@ class Comment(Node): ...@@ -354,7 +354,7 @@ class Comment(Node):
def __init__(self, val): def __init__(self, val):
self.__value__=val self.__value__=val
def toxml(self): def toxml(self):
return '<!--%s-->' % self.__value__ return '<!--%s>' % self.__value__
......
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