On Sun, Jan 1, 2012 at 4:54 PM, Bruno Gruel <[email protected]> wrote: > Hello, > > I have some apps who actualy run with : apache + mod_python + python. > I have to migrate them to mogrel2 + python (it's a powerfull couple) > > My problem is how to port my jsonproxy calls ? > > Under pyjs i pass url like this : > class XServicePython(JSONProxy): > def __init__(self): > JSONProxy.__init__(self, "services/XService.py", ["fetch"]) > > But under mongrel2 the json declaration is like that '@Xservice' = > handler
don't modify the pyjamas application. write a shim between mogrel2 and the code in pyjamas/pyjs/jsonrpc. there are, as you can see, 3 shims already written. cgi, django and web2py. i'm certain that you can see that it would only take you less than 5 minutes to write the 4 to 7 lines of code required. please do submit it as a patch to pyjamas. l.

