Tunmer, Luke wrote:
> The problem I'm getting seems to hinge on the fact that I need to
> grab from my Entity the auto-incrementing primary key Field that
> is generated from the database. I use this as a publicly-visible
> identifier. I have tried a whole slew of combinations of stuff,
> and none of them seems satisfactory.
If these problems are happening within TurboGears, then its almost
certainly because you are not using TurboGears's session. Like
I said, I am pretty sure TurboGears 1.x supports SQLAlchemy by
creating its own transactional/autoflushing session, which you'll
need to make sure to use with your Elixir model.
In your model.py, you should be able to do:
import turbogears
import elixir
elixir.session = turbogears.database.session
See if that helps.
--
Jonathan LaCour
http://cleverdevil.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---