Any help with the following predicament that I'm having would be greatly appreciated:
I'm trying to write my model.py that can be used in a TurboGears application which seems, via magic that I haven't understood yet, to use a session that is configured with autoflush on since it's clear that the as soon as a I create a new Entity, then the database has been updated and auto-incrementing fields are valid within the object. I'm also trying to use the same model in a non-TurboGears context which is a server that servers CORBA apis to my database schema, and clearly it makes sense to use the model to re-use as much of the model logic as I can. In this context my session(s) don't seem to have autoflush on - I have to call session.flush() or self.flush() on each Entity in its constructor. What is the best way of changing the session that is made available to Elixir by default? I've plowed through the documentation and source and it's not clear to me what the intended way is. I'm using TurboGears 1.0.4.3, Elixir 0.5.1, SQLAlchemy 0.4.3 and Python 2.5 on Windows XP. TIA, Luke --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

