[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/publisher/xmlrpc.py explain a removeAllProxies() call

Fred L. Drake, Jr. fdrake at gmail.com
Fri Aug 13 11:07:00 EDT 2004


Log message for revision 27098:
  explain a removeAllProxies() call


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/publisher/xmlrpc.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/publisher/xmlrpc.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/publisher/xmlrpc.py	2004-08-13 15:01:09 UTC (rev 27097)
+++ Zope3/branches/ZopeX3-3.0/src/zope/publisher/xmlrpc.py	2004-08-13 15:07:00 UTC (rev 27098)
@@ -106,6 +106,9 @@
         If is_error is true then the HTML will be formatted as a Zope error
         message instead of a generic HTML page.
         """
+        # We have to call removeAllProxies() to allow the type
+        # introspection to work, and allow the serialization provided
+        # by the xmlrpclib module to operate on the actual object.
         body = removeAllProxies(body)
         if isinstance(body, xmlrpclib.Fault):
             # Convert Fault object to XML-RPC response.



More information about the Zope3-Checkins mailing list