Laurence Rowe wrote:
Why not just have:
"""A utility that specifies the database.
"""Create a new session
"""Get unique id for this database configuration.
This should be unique per site (application).
This looks quite a lot like my proposed new IDatabase, which in fact
also has a scopefunc() method, so that you can have a simple per-thread
scope if you don't care about per-application scopes.
engine = create_engine(
# we use the application name as the unique id. Can we use
# something more clever and universally working?
Yes, that would be good. I'm just making sure it's wise to recreate an
engine for each thread/application.
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -