On Jun 30, 2:46 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> On Jun 30, 2008, at 4:41 PM, matt harrison wrote:
>
> > Folks-
>
> > I'm (seemingly) randomly running across this issue in my pylons/SA
> > app.
>
> > I'm generating a SQL where clause like so:
>
> > where = sa.and_(cal_table.c.adweekid == table.c.adweekid, ....)
>
> > and every so often I'll get an attribute error in sqlalchemy.util:494
> > in __getattr__
>
> > <type 'exceptions.AttributeError'>: adweekid
>
> > I'll refresh the page and it will work.  I'll open the pylons debug
> > page and type:
> > cal_table.c.adweekid
>
> > and
>
> > table.c.adweekid
>
> > and neither will throw an AttributeError, but will just work.
>
> its possible theres more than one Table def at play - depending on the  
> order of module initialization, you get one Table, or you get the other.

Hmmm, any table I reference there should have the adweekid column.
--~--~---------~--~----~------------~-------~--~----~
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