[Zope-dev] z3c.saconfig engine creation configuration

Laurence Rowe l at lrowe.co.uk
Wed Jun 24 19:46:52 EDT 2009


Malthe Borch wrote:
> On MySQL, it's necessary to supply to ``pool_recycle`` parameter on 
> engine creation, else the connection dies after some timeout and the 
> pool is unable to hand out a session.
> 
> The result of this is that the first request fails whenever the 
> connection has been dropped.
> 
> Attached is a patch that allows supplying these pool-related 
> configuration options directly in the ZCML directive (db:engine).
> 
> \malthe

I would rather we did not hardcode the defaults from SQLAlchemy into the 
engine directive (I guess they could change in future). Instead use a 
default of None and only supply the parameter if the config option is set.

Laurence



More information about the Zope-Dev mailing list