Noah Kantrowitz kirjoitti:
> On Jun 23, 2008, at 11:07 AM, Erik Bray wrote:
> 
>> On Mon, Jun 23, 2008 at 3:08 AM, Jani Tiainen <[EMAIL PROTECTED]>  
>> wrote:
>>>> And what do you mean by "generalization + JSON support"? Do you mean
>>>> seeing general-purpose JSON support in Trac core?
>>> If you recall, I made that generalization of RPC backend and added  
>>> JSON
>>> (which follows pretty much XMLRPC) calls too. It was somewhere at the
>>> beginning of this year. And no, not in core but in this fine plugin.
>>>
>>> It could allow usage of SOAP too (if there will be reasonable SOAP
>>> library for Python)
>>>
>> Not at all a terrible idea, though I'm not entirely sure why it's
>> necessary to include in the core.  I have a small plugin (really just
>> an IRequestFilter) that includes the JSON extension for jQuery, and am
>> moving towards using JSON in all my plugins, where applicable.  cjson
>> for the Python side.  Still, not sure why this would be necessary for
>> inclusion in the Trac core unless JSON were to be used by Trac as
>> well.
> 
> As we are looking to add more AJAXy features to Trac core (like the  
> ticketninja branch), having native JSON-RPC would be incredibly useful.

Well, I try post my patch against latest XMLRPC sources. (I tried this 
at the morning but brand new tortoisesvn 1.5 gave me some troubles)

It contains abstract RPC backend that forms base of evertyhing. Then 
there is protocol spesific frontends that main job is to translate 
spesific calls to internal RPC wise calls this time either XMLRPC calls, 
or JSON-RPC calls. Also you can enable/disable either (or both) of these 
'built-in' protocols.

Now if you want to add new functionality only thing you need to do is 
write to abstract backend - it will automatically create corresponding 
JSON or XMLRPC calls/responses.

-- 
Jani Tiainen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to