Is it possible to customize the order by which models are loaded/
imported in a web2py application?
Are they loaded by alphabetical order?
It comes to my mind an idea of an interface for this based on dragging
options like this http://tool-man.org/examples/sorting.html .
Thanks,
Best Regards
On Fri, May 7, 2010 at 4:06 PM, blackthorne wrote:
> Is it possible to customize the order by which models are loaded/
> imported in a web2py application?
> Are they loaded by alphabetical order?
>
>
Yes. They are loaded alphabetically.
> It comes to my mind an idea of an interface for this bas
It would be very nice if we could control the order, alas it is alphabetical.
So we must resort to craziness such as
A_config.py
B_settings.py
C_db.py
D_auth.py
E_crud.py
F_other_mode.py
etc etc.
=)
--
Thadeus
On Fri, May 7, 2010 at 10:08 AM, Miguel Lopes wrote:
> On Fri, May 7, 2010 at
Also, models can be included in sub folders and the folder will be
executed in apha order, and then its models underneath the folder
executed in alpha order
A_plugin_comments ->
init.py
db.py
query.py
B_plugin_ratings ->
..etcetc..
This might help clean things up a bit =?
--
T
4 matches
Mail list logo