Tunmer, Luke wrote:
> 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.
The relevant section of the docs:
http://elixir.ematia.de/apidocs/elixir.options.html
Read the part under `using_options` regarding `session`. You can
specify a session through `using_options`, by creating your own and
assigning it to `elixir.session`, or by setting `__session__` at the
top of the module containing your entities.
I believe that TurboGears implements automatic-transactions by
creating its own session, and expecting you to use it. You'll
likely want to use this session when using your model from within
TurboGears, and creating your own when you are using your model
outside of TurboGears.
Good luck.
--
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
-~----------~----~----~----~------~----~------~--~---