[web2py] how to select the last row in sql database using dal

2015-01-19 Thread chuan
I would like to access last row of any database table in a general way, do I have to first count all the rows, then access the last row? This is effectively 2 qureies. Is there a way to do the job in one single query? Thanks -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Getting Log details

2014-12-08 Thread chuan
For debugging, you may copy logging.conf from web2py/examples/logging.example.conf, and use python logger inside your code. The logs goes into web2py/logs/xxx.log, where xxx is configurable. On Friday, November 28, 2014 11:42:32 AM UTC+1, Research Kamal wrote: Hi to all, I have an web2py

[web2py] Re: Making certain url's even shorter.

2014-12-08 Thread chuan
On Sunday, December 7, 2014 5:04:39 PM UTC+1, Massimo Di Pierro wrote: this should work: routes_in = { /(?Pname[\w+]+\-[\w-]+)':'/app/default/r/$name' } what format is this? parameter-based? On Sunday, 7 December 2014 03:32:45 UTC-6, Encompass solutions wrote: I want to have a URL

[web2py] how to get logging working in gluon modules

2014-12-07 Thread chuan
Hi all, I am debugging my routes.py and looking into gluon/main.py I enable the logging.conf file, and the corresponding session: [logger_web2py] level=DEBUG

[web2py] possible to trail url with default application?

2014-12-07 Thread chuan
I set default_application in routes.py, what I want is when http://myhost.net/ is visited, the url is automatically expanded to http://myhost.net/myapp in the browser address bar. Is it possible? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] dummy database to hold legacy db

2014-12-01 Thread chuan
will see one dummy_db. when a request is made to dummy_db.table_one , the request will be wired to the real DAL object. I am not sure how I should proceed, any idea to share? Thanks, chuan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py