Mike Orr wrote:

There's hardly any difference in the model between 1.0 and 0.9.7.  The
sessionmaker args are updated to SQLA 0.5 standards, and the comments
have been removed from the default model. That's because there are
more parallel ways now to define your model (declarative vs
traditional, specified columns vs autoloading), and it's more
confusing than it's worth to outline all of them in comments. Just
follow the SQLA manual. Anything depending on a live engine has to be
set in init_model(), while anything else can be defined at module
level. In practice, this means that autoloaded tables and the mappers
that depend on them have to be in init_model(), but if you're not
using autoloading you can leave init_model() alone and declare
everything outside it.

Thanks Mike that was educational.

Regards,
mk

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to