On Sat, Dec 13, 2008 at 10:27 PM, Mark Ramm <[email protected]> wrote: > > 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. > ok someone on IRC pointed me to this http://paste.pocoo.org/show/95261 which I assume is what you mean, but how TG1 does it with plain SA is what puzzles me. I found some code similar to that in turbogears.database but it is "flagged with a <0.4" check.
> Perhaps we should encourage something like this for TG2, even when > people use plain SA. > well I'm not sure about that I think we should go like SA and push for declarative, if you want plain SA then maybe document it. > --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 -~----------~----~----~----~------~----~------~--~---
