[web2py] Re: Making a DevBar to develop faster in web2py.

2014-09-20 Thread Massimo Di Pierro
That would not work because the include has precedence over the if in web2py template. You cannot conditionally include. On Thursday, 18 September 2014 03:38:40 UTC-5, Leonel Câmara wrote: > > > If there are ways to stop this from showing up accidently anyway, I > fully intend on using it. > >

Re: [web2py] Re: Making a DevBar to develop faster in web2py.

2014-09-18 Thread Marin Pranjić
Hi! Interesting. Basically you want to time how long does it take for response.render(...). Easiest way would be to use a decorator: - your function returns dict(data=data) - you decorate it, call response.render(response.view, return_dict) and time it - return the result (it will be a string so

[web2py] Re: Making a DevBar to develop faster in web2py.

2014-09-18 Thread Leonel Câmara
> If there are ways to stop this from showing up accidently anyway, I fully intend on using it. You can have something like this in layout.html {{if request.is_local:}} {{include plugin_devbar.html}} {{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Re: Making a DevBar to develop faster in web2py.

2014-09-17 Thread Massimo Di Pierro
You would have to pass that information but mind that they may contain data that is sensitive and private. globals() contains all the global variables. db._timings is a list of (SQL, time) for all the queries. For the loading time look into window performance client-side: http://stackoverflow

[web2py] Re: Making a DevBar to develop faster in web2py.

2014-09-16 Thread JorgeH
Seems nice! keep going On Tuesday, September 16, 2014 2:28:16 PM UTC-5, Encompass solutions wrote: > > > I am working on a feature for web2py and would like to gather the > following information: > >- How long did it take to render html for the page. >- What database calls occured with t