Lukasz Szybalski ha scritto:

> Got another error here. but I guess its fixed in a newer version of
> sqlalchemy via ticket 482
>   

Yes. I wasn't aware of 482 because I usually try to avoid table names 
that _must_ be escaped (mixed caps, reserved words, etc).

>> put assign_mapper() in place of mapper()
>>     
> Are these two the same?
>  assign_mapper in TG, is the same as mapper in SA?
>   

No, SA provides both mapper and assign_mapper. Assign mapper does the 
work of the former, plus attached several methods to your mapped classes 
and binds a default session context.


SA 0.4 deprecates this and uses a scoped_session, but you should not 
worry about it now.

> How can I iterate through myuser fields?
>   

It's "columns", btw. If you call them fields, baby Jesus cries

for column in myuser.c.keys():
   print getattr(myuser,column)


> Thanks for the help.
> I have moved ahead in these few emails more then I was able in a week.
>   

I know how it feels ;-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to