[web2py] Re: web2py

2015-09-26 Thread 黄祥
please take a look at this link http://web2py.com/books/default/chapter/29/04/the-core#request best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Is

[web2py] Re: web2py dry

2015-09-26 Thread T.R.Rajkumar
Thank you for the reply. I do not know how to code it in a module. Example code would be of great help. Is there any example in book? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/iss

Re: [Bulk] [web2py] Re: web2py dry

2015-09-26 Thread 'Diogene Laerce' via web2py-users
Hi, Le 26/09/2015 12:58, T.R.Rajkumar a écrit : > Thank you for the reply. I do not know how to code it in a module. > Example code would be of great help. Is there any example in book? You can use this for example : http://www.ibiblio.org/g2swap/byteofpython/read/making-modules.html And pl

[web2py] session less connections

2015-09-26 Thread icodk
I have many sensors that reports periodically to a web2py application. The sensors do not need to log in, they just POST a json string to specific controller function, get a few bytes in response and close the connection. However each time a sensor connect, a session file is generated. This crea

[web2py] Re: How to download (zip) file with jQuery ajax?

2015-09-26 Thread Phillip
I get the same result with the posted function, albeit your nuances appreciated. To be thorough, I'll repost the updated function. def download_that(): import zipfile import cStringIO import contenttype as c vars = request.vars tempfile = cStringIO.StringIO() tempar

Re: [web2py] session less connections

2015-09-26 Thread Vinicius Assef
Read about `sessions.forget()`[1] [1] http://web2py.com/books/default/chapter/29/04/the-core#session — Vinicius. > On 26 Sep 2015, at 17:47, icodk wrote: > > I have many sensors that reports periodically to a web2py applicat

[web2py] Using as_list() as a performance boost

2015-09-26 Thread Vinicius Assef
Hi everyone. I'm developping a function that wil be called through ajax and it accesses the DB, but I need it to be as fast as possible. Would I expect the `as_list()` method be faster than the normal `select()`? — Vinicius. -- Resources: - http://web2py.com - http://web2py.com/book (Docum