[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - HTTPRequest.py:1.1.2.20.2.2 IPayload.py:1.1.2.5.4.1
Stephan Richter
srichter@cbu.edu
Wed, 13 Mar 2002 05:58:05 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP
In directory cvs.zope.org:/tmp/cvs-serv11175/lib/python/Zope/Publisher/HTTP
Modified Files:
Tag: srichter-OFS_Formulator-branch
HTTPRequest.py IPayload.py
Log Message:
- Added some more tests. Won;t do more, since Publisher is being redesigned
later this week. I will wait until then.
- Added preliminary SOAP support, so we can test Mozilla's SOAP
capabilities. Unfortunately, soaplib is very old; I will look into using
SOAPpy instead. It seems fairly complete.
=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPRequest.py 1.1.2.20.2.1 => 1.1.2.20.2.2 ===
- ###############################################################
- # XXX HACK!!! Please fix me soon! However, I thin payload
- # should know about the view-type, not HTTPRequest
-
def getViewType(self):
'''See interface IViewRequest'''
- return self.payload._viewtype
+ return self.payload.getViewType()
def setViewType(self, viewtype):
''' set the view type '''
- self.payload._viewtype = viewtype
-
- ################################################################
+ self.payload.setViewType(viewtype)
def __init__(self, payload, response, body_instream, environ):
=== Zope3/lib/python/Zope/Publisher/HTTP/IPayload.py 1.1.2.5 => 1.1.2.5.4.1 ===
"""
+ def setViewType(viewtype):
+ """
+ Set the view type that applies to this Payload.
+
+ A 'View Type' can be some sort of HTTP-specific protocol.
+ Examples include Browser (HTML), XML-RPC, WebDAV and so on.
+
+ Note that the Payload is ALWAYS view type specific as the
+ processInputs() method will be implemented differently.
+ """
+
+ def getViewType():
+ """
+ Returns the view type that applies for this Payload.
+ """
+
class IResponsePayload (Interface):