errrr ... i meant testing.py *model*

On Wednesday, August 22, 2012 6:53:52 PM UTC+2, Anthony wrote:
>
> And now a small explanation of why I did not notice this at first:
>> I had a define_table in a testing.py controller. I have removed this 
>> controller from my development repo, but since I am rsyncing to the web2py 
>> applications directory, that old testing.py controller was still in the 
>> testing environment. Since web2py is loading all controllers, the agent 
>> table was being defined twice, without me noticing it.
>>
>
> For a given request, only the requested controller is run. If the request 
> was not to the testing.py controller, than that controller would not be run 
> during that request. On the other hand, all model files (except for 
> conditional models) are run on every request.
>
> Anthony 
>

-- 



Reply via email to