The model is loaded at every request.

Instead of this

> if request.controller == 'mail' or request.controller == 'address_book':
>     db.define_table('contact',
>         Field('name'),
>         ....
>     )

you can just put this


>     db.define_table('contact',
>         Field('name'),
>         ....
>     )


into

modes/mail/address_book/db.py

Reply via email to