[web2py] Re: Initialize some code for other controllers

2010-06-22 Thread pk
thanks for your help On 21 Jun., 18:46, mdipierro wrote: > You can put it in a function in a module but you still need to import > it and call the function where needed. You can put it a model if all > controller need it or a in a controller if only one needs it. > > On Jun 21, 10:49 am, Doug War

[web2py] Re: Initialize some code for other controllers

2010-06-21 Thread mdipierro
You can put it in a function in a module but you still need to import it and call the function where needed. You can put it a model if all controller need it or a in a controller if only one needs it. On Jun 21, 10:49 am, Doug Warren wrote: > The normal way seem to be to add that code to a model