This is super easy to do if you make all of your model classes inherit from a single ModelObject base class, and that's what the declarative does.
Perhaps we should encourage something like this for TG2, even when people use plain SA. --Mark On Sat, Dec 13, 2008 at 10:17 PM, Jorge Vargas <[email protected]> wrote: > > Hi, > > I'm trying to figure out how things like SAclass.query().something are > setup in TG1, in order to see if it's possible to provide this > functionality for TG2. in which the default is > DBSession.query(SAclass) > > I have track down the SA creation in 1.1 here > http://paste.chrisarndt.de/paste/022464fdccec460db52c87fbe17b6a3f and > based on the comparison I don't know why it works on TG1.1 but not on > TG2.0 > > any pointers are appreciated. > > PS: this and moving cherrypy.* calls is the only thing I got left on > my TG1.1 -> TG2.0 migration experiment > > > > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
