Marco Mariani wrote:
> Sanjay ha scritto:
>
>   
>> Need help on how to do it. Being a turbogears application where db
>> entities like metadata and session are imported rather than created by
>> me, I am confused and could not successfully implement the pattern
>> provided in the docs.
>>   
>>     
>
> I'm sure there are cleaner ways, but this worked for me
>
> conn = session.context.get_current().connection(SomeMappedClass)
> conn.execute(...)
>   
yeah. i wish this were more transparent for threadlocal engines.

Huy

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