there are some (complex) examples of models in modules floating around the 
group.  the simple suggestion bruno made would look something like this:

module/mytable.py
def init():
current.myapp.db.define_table(....)
return

then in your conditional model file:
current.myapp.db= db  #get the db connection before you do this
import mytable
mytable.init()

something like that should do it.


On Tuesday, May 15, 2012 8:58:39 AM UTC-7, Annet wrote:
>
> I too think Bruno has the right answer, however, when it comes to Python 
> programming I am not yet proficient enough to translate my model files into 
> modules and use conditional models to instantiate them :-(
>
> I hope one of you can provide me with a working example that I can explore.
>
>
> Kind regards,
>
> Annet
>

Reply via email to