[web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-15 Thread Andrew
When would I choose something like Bottle over using straight web2py?
What's the difference from bottle with gluino, and web2py?

Martin M, you used to have bottle on your blog site. I went to have a
look but it's gone.

So many choices !?

Thanks

Andrew


On Mar 14, 4:22 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 Amazing! just installed using easy_install on windows!

 *c:\Python27\Scriptseasy_install.exe gluino*
 Searching for gluino
 Readinghttp://pypi.python.org/simple/gluino/
 Readinghttps://github.com/mdipierro/gluino
 Best match: Gluino 0.1
 Downloadinghttp://pypi.python.org/packages/source/G/Gluino/Gluino-0.1.tar.gz#md
 5=
 89d645322f6a0af56f80ba8df6f84e34
 Processing Gluino-0.1.tar.gz
 Running Gluino-0.1\setup.py -q bdist_egg --dist-dir
 c:\users\rochac~1\appdata\lo
 cal\temp\easy_install-qcludi\Gluino-0.1\egg-dist-tmp-m_pspc
 zip_safe flag not set; analyzing archive contents...
 gluino.custom_import: module references __file__
 Adding gluino 0.1 to easy-install.pth file

 Installed c:\python27\lib\site-packages\gluino-0.1-py2.7.egg
 Processing dependencies for gluino
 Finished processing dependencies for gluino

 c:\Python27\Scriptspython
 Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
 on win
 32
 Type help, copyright, credits or license for more information.
 * from gluino import **
 No handlers could be found for logger web2py










Re: [web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-15 Thread Martín Mulone
Yes sorry I delete some old thread in my blog the last month. But yes I
worked integrating web2py dal in bottle some months ago, here
https://bitbucket.org/mulonemartin/bottle-web2pydal/overview now I think is
obsolete, go into gluino instead. Perhaps need a lot of test, some time
ago, I remember I have trouble with wsgi and bottle in the way of the
example in gluino perhaps adapating to use install like this:

from bottle import route, view, run, debug, install
from bottle_dal import DALPlugin, Field

def define_tables(db):
My tables definitions here
db.define_table('person',Field('name','string'))

install(DALPlugin('sqlite://storage.sqlite',
  define_tables = lambda db: define_tables(db)))

@route('/')
def index(db):
 Index Example 

if db(db.person.id0).count()==0:
db.person.insert(name='James')
db.person.insert(name='Michael')
db.person.insert(name='Steve')
db.person.insert(name='Robert')
db.commit()

persons = db(db.person.id0).select()

return dict(persons=persons.json())

if __name__ == '__main__':
debug(True)
run(host='localhost', port=8080)




2012/3/15 Andrew awillima...@gmail.com

 When would I choose something like Bottle over using straight web2py?
 What's the difference from bottle with gluino, and web2py?

 Martin M, you used to have bottle on your blog site. I went to have a
 look but it's gone.

 So many choices !?

 Thanks

 Andrew


 On Mar 14, 4:22 pm, Bruno Rocha rochacbr...@gmail.com wrote:
  Amazing! just installed using easy_install on windows!
 
  *c:\Python27\Scriptseasy_install.exe gluino*
  Searching for gluino
  Readinghttp://pypi.python.org/simple/gluino/
  Readinghttps://github.com/mdipierro/gluino
  Best match: Gluino 0.1
  Downloadinghttp://
 pypi.python.org/packages/source/G/Gluino/Gluino-0.1.tar.gz#md
  5=
  89d645322f6a0af56f80ba8df6f84e34
  Processing Gluino-0.1.tar.gz
  Running Gluino-0.1\setup.py -q bdist_egg --dist-dir
  c:\users\rochac~1\appdata\lo
  cal\temp\easy_install-qcludi\Gluino-0.1\egg-dist-tmp-m_pspc
  zip_safe flag not set; analyzing archive contents...
  gluino.custom_import: module references __file__
  Adding gluino 0.1 to easy-install.pth file
 
  Installed c:\python27\lib\site-packages\gluino-0.1-py2.7.egg
  Processing dependencies for gluino
  Finished processing dependencies for gluino
 
  c:\Python27\Scriptspython
  Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
  on win
  32
  Type help, copyright, credits or license for more information.
  * from gluino import **
  No handlers could be found for logger web2py
 
 
 
 
 
 
 
 




-- 
 http://www.tecnodoc.com.ar


[web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-15 Thread Massimo Di Pierro
I make some comments about this here:
https://github.com/mdipierro/gluino

If you like web2py I strongly recommend straight web2py. You lose lots of 
features and you loose the promise of backward compatibility using other 
frameworks. You would also be using something new and poorly tested. I can 
also tell you each one of those frameworks done something weird that first 
of all you have to face. Anyway, if you have simple app with lots of 
models, bottle+gluino may be faster than web2py because models are executed 
only ones and not at every request. It is hard to compile apples to apples 
since web2py has conditional models.

On Thursday, 15 March 2012 01:50:05 UTC-5, Andrew wrote:

 When would I choose something like Bottle over using straight web2py? 
 What's the difference from bottle with gluino, and web2py? 

 Martin M, you used to have bottle on your blog site. I went to have a 
 look but it's gone. 

 So many choices !? 

 Thanks 

 Andrew 


 On Mar 14, 4:22 pm, Bruno Rocha rochacbr...@gmail.com wrote: 
  Amazing! just installed using easy_install on windows! 
  
  *c:\Python27\Scriptseasy_install.exe gluino* 
  Searching for gluino 
  Readinghttp://pypi.python.org/simple/gluino/ 
  Readinghttps://github.com/mdipierro/gluino 
  Best match: Gluino 0.1 
  Downloadinghttp://
 pypi.python.org/packages/source/G/Gluino/Gluino-0.1.tar.gz#md 
  5= 
  89d645322f6a0af56f80ba8df6f84e34 
  Processing Gluino-0.1.tar.gz 
  Running Gluino-0.1\setup.py -q bdist_egg --dist-dir 
  c:\users\rochac~1\appdata\lo 
  cal\temp\easy_install-qcludi\Gluino-0.1\egg-dist-tmp-m_pspc 
  zip_safe flag not set; analyzing archive contents... 
  gluino.custom_import: module references __file__ 
  Adding gluino 0.1 to easy-install.pth file 
  
  Installed c:\python27\lib\site-packages\gluino-0.1-py2.7.egg 
  Processing dependencies for gluino 
  Finished processing dependencies for gluino 
  
  c:\Python27\Scriptspython 
  Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit 
 (Intel)] 
  on win 
  32 
  Type help, copyright, credits or license for more information. 
  * from gluino import ** 
  No handlers could be found for logger web2py 
  
  
  
  
  
  
  
 



[web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-13 Thread Anthony
Nice. On Github, change the description from:

Port of web2py to other Bottle, Flask, Pyramid, Tornado and other frameworks

to:

Port of web2py to Bottle, Flask, Pyramid, Tornado and other frameworks


On Tuesday, March 13, 2012 6:27:34 PM UTC-4, Massimo Di Pierro wrote:




 http://www.reddit.com/r/Python/comments/qv7zh/some_results_form_the_pycon_sprint/

 Please help us test it



[web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-13 Thread Massimo Di Pierro
I think you are looking at the old repo. I deleted it. The new one is this 
one:

https://github.com/mdipierro/gluino

On Tuesday, 13 March 2012 19:40:20 UTC-5, Anthony wrote:

 Nice. On Github, change the description from:

 Port of web2py to other Bottle, Flask, Pyramid, Tornado and other 
 frameworks

 to:

 Port of web2py to Bottle, Flask, Pyramid, Tornado and other frameworks


 On Tuesday, March 13, 2012 6:27:34 PM UTC-4, Massimo Di Pierro wrote:




 http://www.reddit.com/r/Python/comments/qv7zh/some_results_form_the_pycon_sprint/

 Please help us test it



[web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-13 Thread Anthony
No, that's the one I'm looking at -- the one-line description says:

Port of web2py to other Bottle, Flask, Pyramid, Tornado and other frameworks

Delete the other before Bottle.

Anthony

On Tuesday, March 13, 2012 9:18:11 PM UTC-4, Massimo Di Pierro wrote:

 I think you are looking at the old repo. I deleted it. The new one is this 
 one:

 https://github.com/mdipierro/gluino

 On Tuesday, 13 March 2012 19:40:20 UTC-5, Anthony wrote:

 Nice. On Github, change the description from:

 Port of web2py to other Bottle, Flask, Pyramid, Tornado and other 
 frameworks

 to:

 Port of web2py to Bottle, Flask, Pyramid, Tornado and other frameworks


 On Tuesday, March 13, 2012 6:27:34 PM UTC-4, Massimo Di Pierro wrote:




 http://www.reddit.com/r/Python/comments/qv7zh/some_results_form_the_pycon_sprint/

 Please help us test it



[web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-13 Thread Massimo Di Pierro
I found it. And I fixed it now. Thanks for reporting it.

On Tuesday, 13 March 2012 20:20:02 UTC-5, Anthony wrote:

 No, that's the one I'm looking at -- the one-line description says:

 Port of web2py to other Bottle, Flask, Pyramid, Tornado and other 
 frameworks

 Delete the other before Bottle.

 Anthony

 On Tuesday, March 13, 2012 9:18:11 PM UTC-4, Massimo Di Pierro wrote:

 I think you are looking at the old repo. I deleted it. The new one is 
 this one:

 https://github.com/mdipierro/gluino

 On Tuesday, 13 March 2012 19:40:20 UTC-5, Anthony wrote:

 Nice. On Github, change the description from:

 Port of web2py to other Bottle, Flask, Pyramid, Tornado and other 
 frameworks

 to:

 Port of web2py to Bottle, Flask, Pyramid, Tornado and other frameworks


 On Tuesday, March 13, 2012 6:27:34 PM UTC-4, Massimo Di Pierro wrote:




 http://www.reddit.com/r/Python/comments/qv7zh/some_results_form_the_pycon_sprint/

 Please help us test it



Re: [web2py] Re: web2py ported to bottle, flask, pyramid, tornado, wsgiref

2012-03-13 Thread Bruno Rocha
Amazing! just installed using easy_install on windows!

*c:\Python27\Scriptseasy_install.exe gluino*
Searching for gluino
Reading http://pypi.python.org/simple/gluino/
Reading https://github.com/mdipierro/gluino
Best match: Gluino 0.1
Downloading
http://pypi.python.org/packages/source/G/Gluino/Gluino-0.1.tar.gz#md
5=
89d645322f6a0af56f80ba8df6f84e34
Processing Gluino-0.1.tar.gz
Running Gluino-0.1\setup.py -q bdist_egg --dist-dir
c:\users\rochac~1\appdata\lo
cal\temp\easy_install-qcludi\Gluino-0.1\egg-dist-tmp-m_pspc
zip_safe flag not set; analyzing archive contents...
gluino.custom_import: module references __file__
Adding gluino 0.1 to easy-install.pth file

Installed c:\python27\lib\site-packages\gluino-0.1-py2.7.egg
Processing dependencies for gluino
Finished processing dependencies for gluino

c:\Python27\Scriptspython
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type help, copyright, credits or license for more information.
* from gluino import **
No handlers could be found for logger web2py