On Dec 20, 2007 8:50 AM, iain duncan <[EMAIL PROTECTED]> wrote:
>
> Sorry if this seems a stupid question, but I thought that Mike had said
> that in sa0.4, if you used session_context that this
>
> User.query.get_by(name='john')
>
> was the replacement for the old assign mapper convenience call.
> But I'm getting deprecation warnings. What should I be doing instead of
> the (almost as) convenient:
>
> User.query.get_by( **kwargs )

User.query.filter_by(**kwargs).first()

> User.query.select_by( **kwargs )

User.query.filter_by(**kwargs).all()

> User.query.select()

User.query.filter(xxx).all()

-- 
Gaƫtan de Menten
http://openhex.org

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

Reply via email to