[Zope3-checkins] CVS: Zope3/src/zope/publisher - base.py:1.10

Jim Fulton jim at zope.com
Fri Aug 8 15:08:05 EDT 2003


Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv5656/src/zope/publisher

Modified Files:
	base.py 
Log Message:
Reordered operations during traversal so that a name is
added to traversed_names immediately after removing it from the
traversal stack. This allowed the virtual hosting operations in http
to be simplified. It also feels better. :)

*Finally* renamed setViewSkin to setPresentationSkin.


=== Zope3/src/zope/publisher/base.py 1.9 => 1.10 ===
--- Zope3/src/zope/publisher/base.py:1.9	Mon Jun  9 12:39:14 2003
+++ Zope3/src/zope/publisher/base.py	Fri Aug  8 14:08:01 2003
@@ -249,9 +249,9 @@
             if traversal_stack:
                 # Traverse to the next step.
                 entry_name = traversal_stack.pop()
+                traversed_names.append(entry_name)
                 subobject = publication.traverseName(
                     self, object, entry_name)
-                traversed_names.append(entry_name)
                 self._last_obj_traversed = object = subobject
             else:
                 # Finished traversal.
@@ -287,7 +287,7 @@
         'See IPublicationRequest'
         self._traversal_stack[:] = list(stack)
 
-    def setViewSkin(self, skin):
+    def setPresentationSkin(self, skin):
         'See IPublicationRequest'
         self._presentation_skin = skin
 




More information about the Zope3-Checkins mailing list