[web2py] Re: Middleware code

2011-01-22 Thread Anthony
On Saturday, January 22, 2011 4:38:35 PM UTC-5, walter wrote: > > It is the web2py/site-packages. OK! Many thanks. See http://web2py.com/book/default/chapter/04#Third-Party-Modules. Depending on your needs, you can import Python modules from 'site-packages' or put the code in your application

[web2py] Re: Middleware code

2011-01-22 Thread walter
It is the web2py/site-packages. OK! Many thanks.

[web2py] Re: Middleware code

2011-01-22 Thread walter
In the model? Really? It's curiously enough. I have thought I should to create file with my code and place it in a certain, according to the specification, place.

[web2py] Re: Middleware code

2011-01-22 Thread cjrh
On Jan 22, 1:06 pm, walter wrote: > Where can I placed my middleware code that is common for the different > controllers and would used by them? If the code is short (and fast-running), the model file is fine (db.py), but if the code is longer, put it in the web2py/site-packages folder and import

[web2py] Re: Middleware code

2011-01-22 Thread Arun K.Rajeevan
in a model file