was filter_by added recently? I have a assign_mapped class User from
TG, and doing a session.query(User).filter_by doesn't work (no such
method).

On 4/4/07, Michael Bayer <[EMAIL PROTECTED]> wrote:
>
> My preference with assign_mapper at this point is to say:
>
> Client.query.filter_by(sites=siteobj)
>
> i.e. i dont think constantly adding methods to assignmapper is going
> to scale, as the chances of conflicts with existing user classes
> grows.  im into hierarchies of names rather  than huge straight down
> lists.
>
>
> On Apr 4, 2007, at 5:40 AM, Alexandre CONRAD wrote:
>
> >
> > Glauco wrote:
> >
> >> Alexandre CONRAD ha scritto:
> >>
> >>> Okay, thanks. Any idea if .filter_by() and other new "generative"
> >>> method
> >>> will be available in an assign_mapper object?
> >>
> >> Yes..it's available, the final object has identical property as  a
> >> mapper
> >
> > Well, model.Client.filter_by(sites=siteobj) doesn't work for me...
> >
> >    AttributeError: type object 'Client' has no attribute 'filter_by'
> >
> > Or am I misunderstanding how to use it ?
> >
> > Regards,
> > --
> > Alexandre CONRAD
> >
> >
> > >
>
>
> >
>

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