[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher - BaseRequest.py:1.1.2.8 Publish.py:1.1.2.8
Shane Hathaway
shane@digicool.com
Mon, 19 Nov 2001 15:56:13 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher
In directory cvs.zope.org:/tmp/cvs-serv27765
Modified Files:
Tag: Zope-3x-branch
BaseRequest.py Publish.py
Log Message:
Added getPublication() method to request objects and IRequestPayload.
This fixed a name error and is probably a good method to have anyway.
=== Zope3/lib/python/Zope/Publisher/BaseRequest.py 1.1.2.7 => 1.1.2.8 ===
def processInputs(self):
- """Do any input processing that could raise errors
+ """Do any initialization that could raise errors
"""
+
+ def getPublication(self):
return self.publication
def __len__(self):
=== Zope3/lib/python/Zope/Publisher/Publish.py 1.1.2.7 => 1.1.2.8 ===
try:
- publication = request.processInputs()
+ request.processInputs()
+ publication = request.getPublication()
publication.beforeTraversal(request)
object = publication.getApplication(request)
@@ -63,6 +64,7 @@
request = newrequest
else:
# Output the original exception.
+ publication = request.getPublication()
handleException(v.getOriginalException(), request,
publication, 0)
except: