yes you are right, i was using 0.4beta5, i have upgraded to 0.4.0 and
it works as expected.

thanks!

brendan

On 10/23/07, Michael Bayer <[EMAIL PROTECTED]> wrote:
>
>
> On Oct 23, 2007, at 7:18 AM, Brendan Arnold wrote:
>
> >
> > hi there,
> >
> > i'm trying to construct a query using the or_ function as follows,
> >
> >>>> or_(model.Sample.name == 'dddd')
> > Traceback (most recent call last):
> >   File "<console>", line 1, in ?
> > AttributeError: type object 'Sample' has no attribute 'name'
>
> seems like you are calling this before your mappers have been
> configured, or if on an earlier 0.4 beta, before the mappers have
> been compiled. ensure youre on release 0.4, about midway through the
> betas we added the capability for <mappedclass>.<mappedattribute> to
> trigger a mapper compilation (i.e. a compile_mappers()).  otherwise,
> try to send a reproducing test case since the above issue should not
> occur.
>
>
> >
>

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