[Zope3-checkins] CVS: Zope3/src/zope/publisher - base.py:1.16 normal.clb:1.4 publish.py:1.13

Philipp von Weitershausen philikon at philikon.de
Sat Mar 20 08:38:46 EST 2004


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

Modified Files:
	base.py normal.clb publish.py 
Log Message:


Have IPublication.afterCall() accept a second argument, the object
that is being published. We need that in order to be able to annotate
transactions with metadata extracted from the object, such as the
location (http://dev.zope.org/Zope3/SimplifyUndoModel).


=== Zope3/src/zope/publisher/base.py 1.15 => 1.16 ===
--- Zope3/src/zope/publisher/base.py:1.15	Thu Mar 18 15:03:51 2004
+++ Zope3/src/zope/publisher/base.py	Sat Mar 20 08:38:15 2004
@@ -468,7 +468,7 @@
     def callObject(self, request, ob):
         return mapply(ob, request.getPositionalArguments(), request)
 
-    def afterCall(self, request):
+    def afterCall(self, request, ob):
         pass
 
     def handleException(self, object, request, exc_info, retry_allowed=1):


=== Zope3/src/zope/publisher/normal.clb 1.3 => 1.4 ===
--- Zope3/src/zope/publisher/normal.clb:1.3	Fri Apr 11 08:55:41 2003
+++ Zope3/src/zope/publisher/normal.clb	Sat Mar 20 08:38:15 2004
@@ -67,7 +67,7 @@
 
         response.setBody(result)
 
-        publication.afterCall(request)
+        publication.afterCall(request, bar)
 
         response.outputBody()
 


=== Zope3/src/zope/publisher/publish.py 1.12 => 1.13 ===
--- Zope3/src/zope/publisher/publish.py:1.12	Mon Feb 16 16:37:19 2004
+++ Zope3/src/zope/publisher/publish.py	Sat Mar 20 08:38:15 2004
@@ -139,7 +139,7 @@
                         if result is not response:
                             response.setBody(result)
 
-                        publication.afterCall(request)
+                        publication.afterCall(request, object)
 
                     except:
                         publication.handleException(




More information about the Zope3-Checkins mailing list