Commit d66ba51c authored by 's avatar

added denys for aq_self, aq_base

parent 10837a2e
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
'''This module implements a mix-in for traversable objects. '''This module implements a mix-in for traversable objects.
$Id: Traversable.py,v 1.5 2000/09/05 20:52:47 brian Exp $''' $Id: Traversable.py,v 1.6 2001/01/16 16:52:52 brian Exp $'''
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import Acquisition import Acquisition
...@@ -170,6 +170,9 @@ class Traversable: ...@@ -170,6 +170,9 @@ class Traversable:
# Never allowed in a URL. # Never allowed in a URL.
raise 'NotFound', name raise 'NotFound', name
if name in ('aq_self', 'aq_base'):
raise 'NotFound', name
if name=='..': if name=='..':
o=getattr(object, 'aq_parent', M) o=getattr(object, 'aq_parent', M)
if o is not M: if o is not M:
......
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