[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/traversing/ Fixed buglet and related documentation.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Apr 1 23:18:53 EST 2005


Log message for revision 29831:
  Fixed buglet and related documentation.
  
  

Changed:
  U   Zope3/trunk/src/zope/app/traversing/adapters.py
  U   Zope3/trunk/src/zope/app/traversing/interfaces.py

-=-
Modified: Zope3/trunk/src/zope/app/traversing/adapters.py
===================================================================
--- Zope3/trunk/src/zope/app/traversing/adapters.py	2005-04-02 04:16:05 UTC (rev 29830)
+++ Zope3/trunk/src/zope/app/traversing/adapters.py	2005-04-02 04:18:50 UTC (rev 29831)
@@ -80,7 +80,7 @@
 
     def getNearestSite(self):
         "See IPhysicallyLocatable"
-        return self
+        return self.context
 
 
 class Traverser(object):

Modified: Zope3/trunk/src/zope/app/traversing/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/traversing/interfaces.py	2005-04-02 04:16:05 UTC (rev 29830)
+++ Zope3/trunk/src/zope/app/traversing/interfaces.py	2005-04-02 04:18:50 UTC (rev 29831)
@@ -62,7 +62,7 @@
     def getNearestSite():
         """Return the site the object is contained in
         
-        If the object is a site, self is returned.
+        If the object is a site, the object itself is returned.
         """
 
 class ITraversable(Interface):



More information about the Zope3-Checkins mailing list