Yup I do it.
I built a twisted server that handled real time interactivity and logic of my robot. I used amp protocal and build my messages there. Then I made web2py send request with a small function. As a hint, there is ampy which is python amp protocal without twisted. I used that to send the messages. It would very well, infact, really really well... and you don't have to do much fancy work, it just works. Email me personally, and I can tell you more if needed. (But it's not too hard.)
BR,
Jason

On 01/22/2011 02:08 AM, Peter M. wrote:
I have made small demonstration client/server project using the
Twisted framework (http://twistedmatrix.com/) which is just as easy to
use for client/server projects as web2y is for for web applications
and now I want to use web2py as frontend for a shared database.
Twisted web component(s) is not at a state where I want to use it
(http://twistedmatrix.com/trac/wiki/TwistedWebPlan) and I much rather
prefer web2py.

I have seen at least one person on this list saying he is using web2py
as frontend for a "Twisted server". I would like advice on how to make
web2py notify the "Twisted server" about changes in the database. Both
server applications (the "Twisted server process" and web2py) are
running on the same server. I guess I could use a table as message
queue which the Twisted server would read every few seconds.

But if wanted a here-and-now notification then how to do it most elegantly?

There is a solution which works for PostgreSQL http://www.divillo.com/
but I prefer a more general solution.

Should I send a xml-rpc or soap request from web2py ->  Twisted server?

Are there other ways to communicate?

Has anyone had success trying to import twisted modules into web2py?

I guess an integration of Twisted and web2py would make it such a big
killer product that it will require a license to operate it ;-)

Regards
Peter

Reply via email to