On Tuesday, May 27, 2014 8:46:19 AM UTC-4, Anthony wrote:
 

> I suppose we could add a setting that allows you to specify model order, 
> though for backward compatibility, the initial model file (i.e., the one 
> where you make that setting) would have to be first alphabetically.
>

Would it make sense to have the first model file be named something like 
0_db.py - so that it is always run first?
 

> We already have response.models_to_run to specify *which* models to run, 
> but it doesn't allow you to change the order.
>

It's not a biggie - what I'll do (for now and in the future) is to name my 
model file with a prefix.  I could even have a numbered prefix, like in 
Ubuntu /etc/ directories, in case I have more than one model file and they 
need to be executed in a certain order.

By the way: Am I doing the right thing here, by not modifying the db.py 
file and instead adding my own file to specify the database schema?

Henrik.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to