[Zope3-checkins] CVS: Zope3/src/zope/documenttemplate - dt_util.py:1.3
Fred L. Drake, Jr.
fred@zope.com
Fri, 11 Apr 2003 13:54:04 -0400
Update of /cvs-repository/Zope3/src/zope/documenttemplate
In directory cvs.zope.org:/tmp/cvs-serv2448/documenttemplate
Modified Files:
dt_util.py
Log Message:
Kill off a few string-based exceptions.
=== Zope3/src/zope/documenttemplate/dt_util.py 1.2 => 1.3 ===
--- Zope3/src/zope/documenttemplate/dt_util.py:1.2 Wed Dec 25 09:13:36 2002
+++ Zope3/src/zope/documenttemplate/dt_util.py Fri Apr 11 13:54:04 2003
@@ -24,8 +24,11 @@
from zope.documenttemplate.pdocumenttemplate import InstanceDict, TemplateDict, render_blocks
-ParseError='Document Template Parse Error'
-ValidationError='Unauthorized'
+class ParseError(Exception):
+ '''Document Template Parse Error'''
+
+class ValidationError(Exception):
+ '''Unauthorized'''
def html_quote(v, name='(Unknown name)', md={},