2009/1/24 grassoalvaro <[email protected]>:
>
> Hi,
>
> is it good idea to put query inside model class? I found article:
> http://lucumr.pocoo.org/2009/1/3/sqlalchemy-patterns-in-zine but in
> Pylons meta.Session isn't yet initialized when model class is loading.
> So, is it good pattern?


Are you asking if it is a good pattern or a possible pattern?

You can create querys in init_model function like reflected tables is defined.

Regards,
Javi

--~--~---------~--~----~------------~-------~--~----~
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