hi there,
for a zope website I am using sqlalchemy.
Now I am unsure how to use the session object.
What I do now is:
from sqlalchemy.orm import scoped_session
...
Session = scoped_session(session_factory, scopefunc)
session = Session()
this session object I import into all classes where ever I need it.
Now my question:
is it ok to use this single instance troughout the life of the Zope severer, or
should I call Session() whenever I need a session?
thanks
robert
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.