> > Gaetan de Menten ha scritto: > > > > > What's worse (from an upgrade point of view) is that many query > > > methods are also deprecated (though still present in 0.4), namely > > > get_by, select, select_by, etc... Most of these should be replaced by > > > a filter_by() call. For example, MyClass.get_by(name="test") would > > > become MyClass.query.filter_by(name="test").first() > > > > You mean MyClass.query().filter_by... > > No, I meant what I wrote. Class.query is becoming an attribute, not a > method anymore.
We are well aware of this and we are planning to upgrade TG internal usage of SA to make sure it will use the new API. But as you said, the old API is still supported in 0.4 which is a transition release. What we won't be able to fix is the user's model though... This means that even if we decide that TG 1.1 will only work with SA 0.4 using the new API, the user that upgrades from an older version will have to fix his own model. Fortunately, this should not be 'that' difficult to do... Regards, Florent. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en -~----------~----~----~----~------~----~------~--~---

