I am giving a first try on this: <*cherrypy*> rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cherrypy -p 8080 starting cherrypy on 127.0.0.1:8080... /usr/lib/pymodules/python2.6/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/lib/pymodules/python2.6/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Traceback (most recent call last): File "anyserver.py", line 171, in <module> main() File "anyserver.py", line 168, in main
run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) File "anyserver.py", line 129, in run getattr(Servers,servername)(application,(ip,int(port))) File "anyserver.py", line 40, in cherrypy from cherrypy import wsgiserver ImportError: cannot import name wsgiserver rochacbr...@macubuntu:~/projects/web2py$ </*cherrypy*> <*tornado*> rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s tornado -p 8081 starting tornado on 127.0.0.1:8081... Traceback (most recent call last): File "anyserver.py", line 171, in <module> main() File "anyserver.py", line 168, in main run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) File "anyserver.py", line 129, in run getattr(Servers,servername)(application,(ip,int(port))) File "anyserver.py", line 87, in tornado server.listen(address=address[0], port=address[1]) TypeError: listen() got an unexpected keyword argument 'address' </*tornado*> <*paste VERY FAST*> rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s paste -p 8081 starting paste on 127.0.0.1:8081... serving on http://127.0.0.1:8081 </*paste*> <*twisted*> rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s twisted -p 8081 starting twisted on 127.0.0.1:8081... </*twisted*> 2010/12/22 mdipierro <mdipie...@cs.depaul.edu> > we made this easy. There is a new file in trunk > > web2py/anyserver.py > > so just do > > easy_install cherrypy > python anyserver.py -s cherrypy -p 8080 > > easy_install tornado > python anyserver.py -s tornado -p 8081 > > ... > you get the idea. -h for help -i and -p to specify ip and port, -l for > logging and -P for profiler. > > The code is very much inspired by code in the bottle microframework. > > I am not sure if this will stay in its current form or if it will > incorporated into web2py.py (my preference). > > Anybody wants to run some benchmarks tomorrow? > > Anybody wants to help move it to gluon/ and add the -s option to gluon/ > widget.py? > > Massimo > > -- Bruno Rocha http://about.me/rochacbruno/bio