comet for web2py (give it a try) - and happy new year

203 views
Skip to first unread message

mdipierro

unread,
Dec 31, 2010, 2:14:22 PM12/31/10
to web2py-users

mdipierro

unread,
Dec 31, 2010, 2:19:40 PM12/31/10
to web2py-users

mdipierro

unread,
Dec 31, 2010, 2:21:06 PM12/31/10
to web2py-users
... and this requires the latest web2py_ajax.html from welcome in
trunk else it does not work.

Please give it a try, I have not tested it that much!

Massimo

On Dec 31, 1:19 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Sorry Mistake:
>
> http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_mes...

David J.

unread,
Dec 31, 2010, 2:25:16 PM12/31/10
to web...@googlegroups.com
Setting up right now.

I need trunk web2py_ajax or will latest work?

Can I just copy that single file from trunk?

Thx.

mdipierro

unread,
Dec 31, 2010, 2:28:41 PM12/31/10
to web2py-users
yes

mdipierro

unread,
Dec 31, 2010, 2:38:43 PM12/31/10
to web2py-users
... and it requires Chrome!

Jonathan Lundell

unread,
Dec 31, 2010, 2:40:03 PM12/31/10
to web...@googlegroups.com
On Dec 31, 2010, at 11:14 AM, mdipierro wrote:
>
> Should be self explanatory:
>
> http://code.google.com/p/web2py/source/browse/scripts/comet_messaging.py

It got checked into gluon/contrib, not scripts.

mdipierro

unread,
Dec 31, 2010, 3:05:56 PM12/31/10
to web2py-users
Fixed a couple of bugs and moved it to gluon/contrib/
comet_messaging.py

I included more examples.

Bruno Rocha

unread,
Dec 31, 2010, 3:29:53 PM12/31/10
to web...@googlegroups.com
I tried

rochacbruno@macubuntu:~/projects/web2py/gluon/contrib$ sudo easy_install tornado[sudo] password for rochacbruno: 
install_dir /usr/local/lib/python2.6/dist-packages/
Searching for tornado
Best match: tornado 0.2
tornado 0.2 is already the active version in easy-install.pth

rochacbruno@macubuntu:~/projects/web2py/gluon/contrib$ python comet_messaging.py -k 1234 -p 8888
Traceback (most recent call last):
  File "comet_messaging.py", line 68, in <module>
    import tornado.websocket
ImportError: No module named websocket
rochacbruno@macubuntu:~/projects/web2py/gluon/contrib$ 


What can I do to have tornado.websocket?


--

Bruno Rocha
http://about.me/rochacbruno/bio

Bruno Rocha

unread,
Dec 31, 2010, 3:34:26 PM12/31/10
to web...@googlegroups.com
My tornado instalation on UBuntu has not websocket

rochacbruno@macubuntu:/usr/lib/pymodules/python2.6/tornado$ ls
auth.py         database.py   httpclient.py   __init__.py   iostream.py   options.py    template.py   wsgi.py
auth.pyc        database.pyc  httpclient.pyc  __init__.pyc  iostream.pyc  options.pyc   template.pyc  wsgi.pyc
autoreload.py   escape.py     httpserver.py   ioloop.py     locale.py     s3server.py   web.py
autoreload.pyc  escape.pyc    httpserver.pyc  ioloop.pyc    locale.pyc    s3server.pyc  web.pyc


2010/12/31 Bruno Rocha <rocha...@gmail.com>

Jonathan Lundell

unread,
Dec 31, 2010, 3:36:49 PM12/31/10
to web...@googlegroups.com

1.1 appears to be current: http://www.tornadoweb.org/

Bruno Rocha

unread,
Dec 31, 2010, 3:40:03 PM12/31/10
to web...@googlegroups.com

1.1 appears to be current: http://www.tornadoweb.org/

I used apt-get in ubuntu 10.10 and it instals tornado 0.2


and now it is running well. Thanks

Bruno Rocha

unread,
Dec 31, 2010, 4:00:04 PM12/31/10
to web...@googlegroups.com
Updated to tornado 1.1 and it is working very well, thank you so much! 

I will use this on my new system of inventory control, receiving new requests for products and a feeding a table with powerTable.

Very cool!

mdipierro

unread,
Dec 31, 2010, 4:11:21 PM12/31/10
to web2py-users
can you make a video of powertable?

Bruno Rocha

unread,
Dec 31, 2010, 5:03:39 PM12/31/10
to web...@googlegroups.com
2010/12/31 mdipierro <mdip...@cs.depaul.edu>
can you make a video of powertable?

OK, nice idea, 

I'll finish some functions in plugin then test the comet queue as datasource and I'll create a screencast soon.
Reply all
Reply to author
Forward
0 new messages