[Zope-Checkins] CVS: Releases/Zope/lib/python/ZTUtils - Zope.py:1.6

Evan Simpson evan@zope.com
Tue, 13 Nov 2001 14:24:27 -0500


Update of /cvs-repository/Releases/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv22600

Modified Files:
	Zope.py 
Log Message:
Fix Unauthorized handling.


=== Releases/Zope/lib/python/ZTUtils/Zope.py 1.5 => 1.6 ===
 
     def __getitem__(self,index):
-
         data=self._data
         try: s=self._seq
         except AttributeError: return data[index]
@@ -142,8 +141,9 @@
             e = e + 1
             try:
                 try: v = guarded_getitem(s, e)
-                except 'Unauthorized', vv:
+                except Unauthorized, vv:
                     if skip is None:
+                        self._eindex = e
                         msg = '(item %s): %s' % (index, vv)
                         raise Unauthorized, msg, sys.exc_info()[2]
                     skip_this = 1