[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/XMLRPC - XMLRPCPayload.py:1.1.2.2

Stephan Richter srichter@cbu.edu
Wed, 13 Mar 2002 05:58:06 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/XMLRPC
In directory cvs.zope.org:/tmp/cvs-serv11175/lib/python/Zope/Publisher/XMLRPC

Modified Files:
      Tag: srichter-OFS_Formulator-branch
	XMLRPCPayload.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/XMLRPC/XMLRPCPayload.py 1.1.2.1 => 1.1.2.2 ===
     __implements__ = IRequestPayload
 
-
-    # XXX HACK!!!! This should be implemented via some nice
-    #     methods and interface
     _viewtype = IXMLRPCPublisher
     
 
@@ -81,6 +78,14 @@
         result = "<p>URL: %s</p>" % request.URL
         result = result + "<p>SERVER_URL: %s</p>" % request.SERVER_URL
         return result
+
+
+    def setViewType(self, viewtype):
+        self._viewtype = viewtype
+
+
+    def getViewType(self):
+        return self._viewtype