[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing - ITraverser.py:1.1.2.3
Tres Seaver
tseaver@zope.com
Tue, 12 Feb 2002 15:56:35 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing
In directory cvs.zope.org:/tmp/cvs-serv19744/Zope/App/Traversing
Modified Files:
Tag: Zope-3x-branch
ITraverser.py
Log Message:
- Normalize file headers.
- Fix violations of "80 character" rule.
=== Zope3/lib/python/Zope/App/Traversing/ITraverser.py 1.1.2.2 => 1.1.2.3 ===
+#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -6,6 +8,11 @@
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
+##############################################################################
+"""
+
+$Id$
+"""
import Interface
@@ -24,9 +31,9 @@
"""
Returns a path (an immutable sequence of strings) from the root.
- This path can be used to access this object again later, for example in
- a copy/paste operation. Returns an empty tuple if the base object is not
- wrapped.
+ This path can be used to access this object again later, for example
+ in a copy/paste operation. Returns an empty tuple if the base object
+ is not wrapped.
"""
def unrestrictedTraverse(path, default=_RAISE_KEYERROR):
@@ -36,11 +43,11 @@
Path is either an immutable sequence of strings or a slash ('/')
delimited string.
- If the first string in the path sequence is an empty string, or the path
- begins with a '/', start at the root. Otherwise the path is relative to
- the current context.
+ If the first string in the path sequence is an empty string,
+ or the path begins with a '/', start at the root. Otherwise the path
+ is relative to the current context.
- If the object is not found then the 'default' argument will be returned.
+ If the object is not found, return 'default' argument.
"""
def restrictedTraverse(path, default=_RAISE_KEYERROR):