[web2py] Re: what to put in models besides models?

2011-07-21 Thread pbreit
I think in theory you should be able to do that, but do you really want to be opening all those files on every page request? Can you show what code generated the error? My line 109 in appadmin is blank.

[web2py] Re: what to put in models besides models?

2011-07-21 Thread Anthony
'sorted' is a Python builtin, and it happens to be called in the appadmin.html view. All variables/objects created in the model files are available in the view environment as well, so you have redefined the Python builtin sorted() function as a dictionary -- *sorted=Analises*. To be safe, try

[web2py] Re: what to put in models besides models?

2011-07-21 Thread Anthony
On Thursday, July 21, 2011 12:01:56 PM UTC-4, pbreit wrote: I think in theory you should be able to do that, but do you really want to be opening all those files on every page request? Can you show what code generated the error? My line 109 in appadmin is blank. Note, in tracebacks

Re: [web2py] Re: what to put in models besides models?

2011-07-21 Thread António Ramos
My traceback gives this in line 109 * for db in sorted(databases):* * * * * * * 2011/7/21 Anthony abasta...@gmail.com On Thursday, July 21, 2011 12:01:56 PM UTC-4, pbreit wrote: I think in theory you should be able to do that, but do you really want to be opening all those files on every