What i do is put model definition on modules - not models - for
example i have a module for person (person.py) and a module for state
(state.py) each have a define_table function. Then in my models some
where i can import then in pretended order:

import person
import state

person.define_table()
state.define_table()

U can make it to import only the needed models but that's other topic.

2015-12-04 10:29 GMT-05:00, Alessio Varalta
<[email protected]>:
> I have a model with multiple files, my problem is that I have this file
>
> 1-model_layer_ruolo
> 2_model_layer_scheda
> 3_model_esercizio
>
> But web2py ignore the number and execute like first file 3_model_esercizio
> there is the possibility to define the order of reading?
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to