pyjamas and web2py (it works!)

37 views
Skip to first unread message

mdipierro

unread,
Feb 8, 2009, 1:23:49 PM2/8/09
to web2py Web Framework
Pyjamas now works great with web2py.

Here is more about it

http://mdp.cti.depaul.edu/AlterEgo/default/show/203

Thanks to Like Kenneth Casson Leighton (creator of pyjamas) for all
his help on this matter.

Massimo

lkcl

unread,
Feb 8, 2009, 1:52:35 PM2/8/09
to web2py Web Framework, pyjam...@groups.google.com


On Feb 8, 6:23 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Pyjamas now works great with web2py.

excellent!
> Thanks to Luke Kenneth Casson Leighton (creator of pyjamas)

well, it was james tauber, originally - i'm now the maintainer and
lead developer, but thank you.

the JSONRPCService class, btw, is truly a total independent JSONRPC
service that has absolutely nothing to do with pyjamas, and so could
equally well be utilised for other web2py projects.

controllers/default.py shows how incredibly easy it is to create a
web2py jsonrpc service (s/pyjamas/jsonservice in both controllers/
default.py and models/pyjamas.py so as to psychologically disassociate
"pyjamas" from "jsonrpc").

literally by sticking the decorator on the front of a function,
magically it's turned into one of the methods of the service.

i presume that by sticking an extra decorator (@auth or such) you'd
have an _authenticated_ web2py jsonrpc service, with as much
simplicity and ease.

of course... good JSONRPC clients are hard to find - at least, they're
damn hard to use well in "pure javascript". personally i wouldn't go
_near_ JSONRPC if it wasn't for the utter simplicity with which
JSONRPC services can be used when you get the pyjamas compiler to
compile the python code into client-side javascript.

however, the web2py jsonrpc service could equally as well be utilised
with a GWT app, if you love java or something.

so the addition of the jsonrpc service to web2py really does open up
the possibilities for web2py quite considerably.

l.

mdipierro

unread,
Feb 8, 2009, 3:21:28 PM2/8/09
to web2py Web Framework
so far the only service in web2py was xmlrpc.

I agree with you that jsonrpcservice should also be included.

We need to an extensible uniform interface to deal with these and more
types of services, something similar to what T3 does.

What other popular services are out there and should be supported out
of the box?

This will be in 1.57.

Massimo

Paul D. Eden

unread,
Feb 8, 2009, 3:53:13 PM2/8/09
to web2py Web Framework
SOAP comes to mind.

That would allow developers to create web2py apps that serve .NET or
Java SOAP clients. That opens up a lot of integration possibilities.

Paul

mdipierro

unread,
Feb 8, 2009, 4:36:23 PM2/8/09
to web2py Web Framework
We do support SOAP and there is a SOAP howto on AlterEgo but SOAP is
too heavy to be included in web2py.
Nevertheless we can develop a common intreface that works with SOAP if
soap is installed.

Massimo

lkcl

unread,
Feb 8, 2009, 4:58:10 PM2/8/09
to web2py Web Framework
> What other popular services are out there and should be supported out
> of the box?

full REST support might be a good one to add.

mdipierro

unread,
Feb 8, 2009, 5:25:41 PM2/8/09
to web2py Web Framework
Sorry I am slow today. can you make an example?

Paul D. Eden

unread,
Feb 8, 2009, 7:17:49 PM2/8/09
to web2py Web Framework
That sounds good.

lkcl

unread,
Feb 9, 2009, 4:49:39 AM2/9/09
to web2py Web Framework


On Feb 8, 10:25 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:

> > > What other popular services are out there and should be supported out
> > > of the box?
>
> > full REST support might be a good one to add.

> Sorry I am slow today. can you make an example?

http://en.wikipedia.org/wiki/Representational_State_Transfer#Example

he he - i've only just started looking it up.
REST is a standard layout - of the URLs - for doing storage and
retrieval of objects into a database. in theory, once you have
implemented RESTful correctly, you only need one bit of client code
(per programming language) to access the one bit of server code (per
programming language), and you're done as far as database is
concerned, cross-platform-wise.

l.
Reply all
Reply to author
Forward
0 new messages