[web2py] Re: Detached entities with web2py

2010-01-20 Thread K.R.Arun
Thank you for fast responces. Now I have a few options to try out. I'll update here once I implemented it successfully for the benefit of others. (I want to update my personal site and add a blog within it (web2py + GAE, of course), so my blog isn't functional these days.) On Jan 19, 10:51 pm, md

[web2py] Re: Detached entities with web2py

2010-01-19 Thread mdipierro
There are two sources of confusion here. And it is my fault. GWT uses GWT RPC which assumes a Java serverlet. I am not familiar with this and it may be hard to have web2py mimic the serverlet. I thought you were using Pyjamas, the python port of GWT. Pyjamas does not uses GWT RPC but JSONRPC and

[web2py] Re: Detached entities with web2py

2010-01-19 Thread K.R.Arun
On Jan 19, 9:21 pm, "K.R.Arun" wrote: > All this long, I forgot one thing,With GWT we can use only javascript > at client. There's no python there. > So now problem is, Can we call web2py's @service.jsonrpc or > @service.xmlrpc with JavaScipt? And How? I suppose it's possible with plug-in of JQ

[web2py] Re: Detached entities with web2py

2010-01-19 Thread K.R.Arun
All this long, I forgot one thing,With GWT we can use only javascript at client. There's no python there. So now problem is, Can we call web2py's @service.jsonrpc or @service.xmlrpc with JavaScipt? And How? -- You received this message because you are subscribed to the Google Groups "web2py-user

[web2py] Re: Detached entities with web2py

2010-01-19 Thread mdipierro
I think request.env.http_port On Jan 19, 9:13 am, "K.R.Arun" wrote: > Please, One more clarification; > In my case, I want to access the jsonrpc service of an application, > within that application itself. > So is there any chance for me reduce the following. (Why should I give > the complete

[web2py] Re: Detached entities with web2py

2010-01-19 Thread K.R.Arun
Please, One more clarification; In my case, I want to access the jsonrpc service of an application, within that application itself. So is there any chance for me reduce the following. (Why should I give the complete url to the server, Can't I go with relative url?) >>> server = >>> jsonrpclib.Ser

[web2py] Re: Detached entities with web2py

2010-01-18 Thread mdipierro
In web2py sessions are automatic. >From a python client you would call the sample function using http://code.google.com/p/jsonrpclib/ with >>> import jsonrpclib >>> server = >>> jsonrpclib.Server('http://localhost:8000/appname/default/call/jsonrpc') >>> errors = server.update_record({'id':0,'fie

[web2py] Re: Detached entities with web2py

2010-01-18 Thread K.R.Arun
> db(db.person.id>0).select().json() > I assume XML in addition to JSON is possible(just in case I need to). Now I have to parse the JSON data client side. > you can then write a client so that if a second is updated it sends > back it to the server and the sever does something like this > > @se

[web2py] Re: Detached entities with web2py

2010-01-17 Thread mdipierro
I cannot answer the question whether web2py is the right choice for not since I am not familiar with JDO/JPA and therefore I am not sure about what they do. I can anyway answer your specific questions. The answer is yes, you can to both with a caveat discussed below: Say for example that you have