Commit e3a0fe92 authored by Shane Hathaway's avatar Shane Hathaway

Some HTML comments were terminated incorrectly with just '>' rather than '-->'.

Corrected.  Also, someone apparently thought that XML comments can terminate
with just an angle bracket.  See:

http://www.w3.org/TR/1998/REC-xml-19980210#sec-comments
parent 432d8b3c
...@@ -38,7 +38,7 @@ td { ...@@ -38,7 +38,7 @@ td {
font-size: 10pt; font-size: 10pt;
color: black; color: black;
} }
> -->
</style> </style>
<dtml-with expr="_.namespace(valid_roles=valid_roles())"> <dtml-with expr="_.namespace(valid_roles=valid_roles())">
......
...@@ -13,7 +13,7 @@ font-size: 10pt; ...@@ -13,7 +13,7 @@ font-size: 10pt;
font-size: 10pt; font-size: 10pt;
} }
> -->
</style> </style>
</head> </head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555"> <body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""DTML Method objects.""" """DTML Method objects."""
__version__='$Revision: 1.41 $'[11:-2] __version__='$Revision: 1.42 $'[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
...@@ -298,7 +298,7 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager, ...@@ -298,7 +298,7 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
raise 'Forbidden', ( raise 'Forbidden', (
'You are not authorized to change <em>%s</em> because you ' 'You are not authorized to change <em>%s</em> because you '
'do not have proxy roles.\n<!--%s, %s>' % (self.__name__, u, roles)) 'do not have proxy roles.\n<!--%s, %s-->' % (self.__name__, u, roles))
def manage_proxy(self, roles=(), REQUEST=None): def manage_proxy(self, roles=(), REQUEST=None):
......
...@@ -15,7 +15,7 @@ and will be accessible again if the product is reinstalled. ...@@ -15,7 +15,7 @@ and will be accessible again if the product is reinstalled.
<!-- <!--
<dtml-var info> <dtml-var info>
> -->
</BODY> </BODY>
</HTML> </HTML>
......
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
database_type='Gadfly' database_type='Gadfly'
__doc__='''%s Database Connection __doc__='''%s Database Connection
$Id: DA.py,v 1.9 1999/11/03 18:56:32 sroberts Exp $''' % database_type $Id: DA.py,v 1.10 2000/05/04 13:32:06 shane Exp $''' % database_type
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
from db import DB, manage_DataSources from db import DB, manage_DataSources
import sys, DABase, Globals import sys, DABase, Globals
...@@ -157,7 +157,7 @@ class Connection(DABase.Connection): ...@@ -157,7 +157,7 @@ class Connection(DABase.Connection):
raise 'BadRequest', ( raise 'BadRequest', (
'<strong>Invalid connection string: </strong>' '<strong>Invalid connection string: </strong>'
'<CODE>%s</CODE><br>\n' '<CODE>%s</CODE><br>\n'
'<!--\n%s\n%s\n>\n' '<!--\n%s\n%s\n-->\n'
% (s,t,v)), tb % (s,t,v)), tb
finally: tb=None finally: tb=None
......
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Generic Database Connection Support __doc__='''Generic Database Connection Support
$Id: Connection.py,v 1.21 1999/12/29 15:05:34 petrilli Exp $''' $Id: Connection.py,v 1.22 2000/05/04 13:32:06 shane Exp $'''
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
import Globals, OFS.SimpleItem, AccessControl.Role, Acquisition, sys import Globals, OFS.SimpleItem, AccessControl.Role, Acquisition, sys
from DateTime import DateTime from DateTime import DateTime
...@@ -229,7 +229,7 @@ class Connection( ...@@ -229,7 +229,7 @@ class Connection(
t, v, tb = sys.exc_type, sys.exc_value, sys.exc_traceback t, v, tb = sys.exc_type, sys.exc_value, sys.exc_traceback
raise 'BadRequest', ( raise 'BadRequest', (
'<strong>Invalid connection string: </strong><CODE>%s</CODE><br>\n' '<strong>Invalid connection string: </strong><CODE>%s</CODE><br>\n'
'<!--\n%s\n%s\n>\n' '<!--\n%s\n%s\n-->\n'
% (s,t,v)), tb % (s,t,v)), tb
finally: tb=None finally: tb=None
self._v_connected=DateTime() self._v_connected=DateTime()
......
...@@ -51,7 +51,7 @@ xmldecl = re.compile('<\?xml'+_S+ ...@@ -51,7 +51,7 @@ xmldecl = re.compile('<\?xml'+_S+
procopen = re.compile(r'<\?(?P<proc>' + _Name + ')' + _opS) procopen = re.compile(r'<\?(?P<proc>' + _Name + ')' + _opS)
procclose = re.compile(_opS + r'\?>') procclose = re.compile(_opS + r'\?>')
commentopen = re.compile('<!--') commentopen = re.compile('<!--')
commentclose = re.compile('>') commentclose = re.compile('-->')
doubledash = re.compile('--') doubledash = re.compile('--')
attrfind = re.compile( attrfind = re.compile(
_S + '(?P<name>' + _Name + ')' _S + '(?P<name>' + _Name + ')'
......
...@@ -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.8 $'[11:-2] __version__='$Revision: 1.9 $'[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