[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing - __init__.py:1.13
Guido van Rossum
guido@python.org
Fri, 6 Dec 2002 07:10:21 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing
In directory cvs.zope.org:/tmp/cvs-serv20979
Modified Files:
__init__.py
Log Message:
Add XXX comment to traverseName for SteveA to act upon.
=== Zope3/lib/python/Zope/App/Traversing/__init__.py 1.12 => 1.13 ===
--- Zope3/lib/python/Zope/App/Traversing/__init__.py:1.12 Thu Dec 5 09:29:22 2002
+++ Zope3/lib/python/Zope/App/Traversing/__init__.py Fri Dec 6 07:10:20 2002
@@ -49,6 +49,10 @@
else:
return traverser.traverse(path, default=default, request=request)
+# XXX This should have an additional optional argument where you
+# can pass an ITraversable to use, otherwise it should get
+# an adapter for ITraversable from the object and use that to
+# traverse one step.
def traverseName(obj, name, default=_marker):
"""Traverse a single step 'name' relative to 'place'