[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate -
DT_In.py:1.60.92.1 DT_Var.py:1.59.34.1
Tres Seaver
cvs-admin at zope.org
Mon Nov 17 17:10:21 EST 2003
Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv12097/lib/python/DocumentTemplate
Modified Files:
Tag: tseaver-strexp_delenda-branch
DT_In.py DT_Var.py
Log Message:
- Rip string exceptins out by the root.
- webdav/*: clean up block statements for readability.
- XXX: Redirects are now showing up in the error log object; need
to filter!
=== Zope/lib/python/DocumentTemplate/DT_In.py 1.60 => 1.60.92.1 ===
--- Zope/lib/python/DocumentTemplate/DT_In.py:1.60 Wed Aug 14 18:29:52 2002
+++ Zope/lib/python/DocumentTemplate/DT_In.py Mon Nov 17 17:09:51 2003
@@ -450,7 +450,7 @@
return ''
if type(sequence) is type(''):
- raise 'InError', (
+ raise ValueError, (
'Strings are not allowed as input to the in tag.')
@@ -633,7 +633,7 @@
return ''
if type(sequence) is type(''):
- raise 'InError', (
+ raise ValueError, (
'Strings are not allowed as input to the in tag.')
section=self.section
=== Zope/lib/python/DocumentTemplate/DT_Var.py 1.59 => 1.59.34.1 ===
--- Zope/lib/python/DocumentTemplate/DT_Var.py:1.59 Sat Feb 1 04:25:58 2003
+++ Zope/lib/python/DocumentTemplate/DT_Var.py Mon Nov 17 17:09:51 2003
@@ -303,7 +303,7 @@
if have_arg('size'):
size=args['size']
try: size=int(size)
- except: raise 'Document Error',(
+ except: raise ValueError,(
'''a <code>size</code> attribute was used in a <code>var</code>
tag with a non-integer value.''')
if len(val) > size:
More information about the Zope-Checkins
mailing list