[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests -
publication.py:1.4 test_ipublication.py:1.4
Philipp von Weitershausen
philikon at philikon.de
Sat Mar 20 08:38:47 EST 2004
Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv719/src/zope/publisher/tests
Modified Files:
publication.py test_ipublication.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/tests/publication.py 1.3 => 1.4 ===
--- Zope3/src/zope/publisher/tests/publication.py:1.3 Tue Jun 3 10:32:07 2003
+++ Zope3/src/zope/publisher/tests/publication.py Sat Mar 20 08:38:16 2004
@@ -11,6 +11,9 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""
+$Id$
+"""
from zope.publisher.interfaces import IPublication
from zope.interface import implements
@@ -19,7 +22,7 @@
implements(IPublication)
- def afterCall(self, request):
+ def afterCall(self, request, ob):
'''See interface IPublication'''
self._afterCall = getattr(self, '_afterCall', 0) + 1
=== Zope3/src/zope/publisher/tests/test_ipublication.py 1.3 => 1.4 ===
--- Zope3/src/zope/publisher/tests/test_ipublication.py:1.3 Fri Apr 11 08:55:41 2003
+++ Zope3/src/zope/publisher/tests/test_ipublication.py Sat Mar 20 08:38:16 2004
@@ -60,7 +60,7 @@
# good examples of tests for other implementations.
def test_afterCall(self):
- self._publication.afterCall(self._request)
+ self._publication.afterCall(self._request, None)
self.assertEqual(self._publication._afterCall, 1)
def test_traverseName(self):
More information about the Zope3-Checkins
mailing list