Aruna Kathiria wrote:
I did some work regarding SOAP support on ZOPE and published this
document on
The link for this document is

I would like to get feedback/suggestion regarding this document.

One preliminary suggestion:

In the section entitled "3.2.4 Correcting", I would
suggest that instead of having users edit the file, you could
instead distribute your product as a "Monkey Patch" Zope Product
that overrides the HTTPRequest.processInputs method with your
altered version.

You can see an example of this in the XmlFix Product attached
to the followign mailing-list item:

Basically you would do this:

### Import the HTTPRequest object we want to alter
from ZPublisher.HTTPRequest import HTTPRequest

### Save the *old* processInputs method
def initialize(context):
    HTTPRequest._realProcessInputs = HTTPRequest.processInputs
    HTTPRequest.processInputs = processInputs

### Write a new processInputs method that does what we want
def processInputs(self, *args, **kw):
     if myProductShouldHandleThisRequest:
         ### Hand over to the original processInputs
         return self._realProcessInputs(*args, **kw)


Since this is a Zope Product, the above code would run once every time you started Zope, and is much more "portable" between Zope installations than having the admin edit code.

Hope that helps,
John Ziniti
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - )

Reply via email to