all files in

models/a/

are executed only for actions in controllers/a.py

all files in

models/a/b/

are executed only for actions b() in controllers/a.py

this is for every a and b.

On Aug 16, 1:14 pm, Ross Peoples <ross.peop...@gmail.com> wrote:
> I didn't know could share a model file between two controllers by simply
> adding another folder. That's pretty cool and "magic" like. Would this work
> with a third controller as well?
>
> Like if you have 'address_book', 'mail', and 'calendar' controllers all
> needing to access a single model by doing this?:
>
> models/mail/address_book/calendar/db.py
>
> It true, then that could really help out a lot.

Reply via email to