[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests -
test_browserpublication.py:1.28
Philipp von Weitershausen
philikon at philikon.de
Sat Mar 20 08:38:45 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/publication/tests
In directory cvs.zope.org:/tmp/cvs-serv719/src/zope/app/publication/tests
Modified Files:
test_browserpublication.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/app/publication/tests/test_browserpublication.py 1.27 => 1.28 ===
--- Zope3/src/zope/app/publication/tests/test_browserpublication.py:1.27 Fri Mar 19 15:26:30 2004
+++ Zope3/src/zope/app/publication/tests/test_browserpublication.py Sat Mar 20 08:38:14 2004
@@ -282,7 +282,7 @@
request = TestRequest(StringIO(''), output, {'PATH_INFO': '/'})
request.setUser(User())
request.response.setBody("spam")
- pub.afterCall(request)
+ pub.afterCall(request, None)
request.response.outputBody()
self.assertEqual(
output.getvalue(),
@@ -299,7 +299,7 @@
request.setUser(User())
request.method = 'HEAD'
request.response.setBody("spam")
- pub.afterCall(request)
+ pub.afterCall(request, None)
request.response.outputBody()
self.assertEqual(
output.getvalue(),
More information about the Zope3-Checkins
mailing list