Not really a good solution, but you can do in the beggining of every model
file.

if request.function in ['index', 'another', 'other']:
    #model code goes here

this way you can set which function will execute that model file.

On Wed, Nov 2, 2011 at 1:27 PM, anubhav aggarwal <anubhav...@gmail.com>wrote:

> Thanks for the reply
>
> You may also wish to consider using sub-folders for models.
>>
>> all files in
>>
>> models/a/
>>
>> are executed only for actions in controllers/a.py
>>
>>
>> Actually we wanted to execute most of the models for all the controllers
> except this particular controller which needs only 2 files of the models .
> Therefore we put the files in the common folder ( models/ ) .
>
> Could you please suggest any other way to control the execution of the
> files in the models.
>
> Thank You
> Anubhav Aggarwal
>
>



-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to