[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser - Resources.py:1.3

Steve Alexander steve@cat-box.net
Mon, 28 Oct 2002 06:41:34 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv27005/lib/python/Zope/App/Publisher/Browser

Modified Files:
	Resources.py 
Log Message:
renamed "self" to "wrapped_self", to reflect its nature as a ContextMethod



=== Zope3/lib/python/Zope/App/Publisher/Browser/Resources.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/Resources.py:1.2	Fri Jun 14 05:25:20 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/Resources.py	Mon Oct 28 06:41:34 2002
@@ -34,13 +34,13 @@
     # Implementation methods for interface
     # Zope.Publisher.Browser.IBrowserPublisher.
 
-    def publishTraverse(self, request, name):
+    def publishTraverse(wrapped_self, request, name):
         '''See interface IBrowserPublisher'''
         
-        resource_service = getService(self, 'Resources')
-        resource = resource_service.queryResource(self, name, request)
+        resource_service = getService(wrapped_self, 'Resources')
+        resource = resource_service.queryResource(wrapped_self, name, request)
         if resource is None:
-            raise NotFoundError(self, name)
+            raise NotFoundError(wrapped_self, name)
         return ContextWrapper(resource, resource_service)
 
     publishTraverse = ContextMethod(publishTraverse)