[Zope3-dev] Re: JSON

Jim Washington jwashin at vt.edu
Tue May 31 14:03:37 EDT 2005


Philipp von Weitershausen wrote:

> Stephan Richter wrote:
>
>> Here is how to do it for the current trunk.
>>
>> 1. Create your custom HTTPPublicationRequestFactory implementation,
>> basically extending the __call__() method.
>>
>> 2. Create a server type using your own factory; see
>> zope.app.server.http.
>>
>> 3. Register you custom server type as a utility, see
>> zope.app.server/configure.zcml.
>>
>> 4. In zope.conf use your custom server type.
>>
>> 5. Implement the protocol similar to XML-RPC.
>
>
> If you're looking for an example of how an external package provides
> another server type, see the davuseragent package I wrote once with
> Paul Everitt (http://codespeak.net/svn/z3/davuseragent/trunk/). It's
> written for Zope X3.0 but could easily be adapted to 3.1.
>
Hi, Philipp

I got JSON-RPC working this weekend with Stephan's instructions and a
bit of additional spelunking in the main source.

I will, however, take a look at davuseragent to see if you did anything
more elegantly. :)

Thanks,

-Jim Washington


More information about the Zope3-dev mailing list