le 24.09.2008 20:02 Kirk Strauser a écrit: > On Wednesday 24 September 2008 12:45:10 Remi Jolin - SysGroup wrote: > > >> I'm not using plain SQLAlchemy but I defined my models with Elixir (much >> simpler as you define both table and mapper at the same time and it's >> enough for me :-) ). >> > > Alas, we'd already set up our mappings before Elixir came on the scene, and > they're in use by several other local applications. > > >> With Elixir, (and perhaps with plain SA definitions also), you don't need to >> bother with the session >> > > Nope, with "plain" SA you have to use the session, since the class > definitions > inherit from Python's "object" class and the table objects don't have any > concept of sessions or database connections. > > Thanks for replying, though. I was beginning to get lonely. :-) > TG sets up a session. Do you use that one in all your modules ?
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

