Hi,

>I have been trying to use the unique object recipe
>   ( http://www.sqlalchemy.org/trac/wiki/UsageRecipes/UniqueObject )
>with turbogears, but have run in to trouble.
>  
>
I see the recipe creates it's own session context, which could conflict 
with TG's one.

Try replacing:

ctx = SessionContext(sa.create_session)

With:
ctx = turbogears.database.session

If that doesn't help, I suggest posting your question to the SQLAlchemy 
list.

Good luck,

Paul

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

Reply via email to