Commit 15c41094 authored by Andreas Jung's avatar Andreas Jung

     - Collector #851: Traversable.py: A bare try..except shadowed
       conflict errors
parent f03de0b3
...@@ -8,6 +8,9 @@ Zope Changes ...@@ -8,6 +8,9 @@ Zope Changes
Bugs fixed Bugs fixed
- Collector #851: Traversable.py: A bare try..except shadowed
conflict errors
- Collector #1058: Several fixes for PropertySheets when used - Collector #1058: Several fixes for PropertySheets when used
outside ZClasses outside ZClasses
......
...@@ -12,14 +12,15 @@ ...@@ -12,14 +12,15 @@
############################################################################## ##############################################################################
'''This module implements a mix-in for traversable objects. '''This module implements a mix-in for traversable objects.
$Id: Traversable.py,v 1.20 2003/07/08 17:03:52 evan Exp $''' $Id: Traversable.py,v 1.21 2003/09/29 12:34:38 andreasjung Exp $'''
__version__='$Revision: 1.20 $'[11:-2] __version__='$Revision: 1.21 $'[11:-2]
from Acquisition import Acquired, aq_inner, aq_parent, aq_base from Acquisition import Acquired, aq_inner, aq_parent, aq_base
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from AccessControl import Unauthorized from AccessControl import Unauthorized
from AccessControl.ZopeGuards import guarded_getattr from AccessControl.ZopeGuards import guarded_getattr
from ZODB.POSException import ConflictError
from urllib import quote from urllib import quote
NotFound = 'NotFound' NotFound = 'NotFound'
...@@ -150,6 +151,7 @@ class Traversable: ...@@ -150,6 +151,7 @@ class Traversable:
return object return object
except ConflictError: raise
except: except:
if default==_marker: raise if default==_marker: raise
return default return default
......
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