[Zope-DB] [ZOracleDA] What should the "close" button do?

Chris Withers chris at simplistix.co.uk
Wed Mar 24 10:51:45 EST 2004


Hi there,

In my recent changes to ZOracleDA, the code now does what it says on the tin.
When you hit the close button, all connections for the connection string of the 
DA you hit close on are closed and removed from the connection pool, regardless 
of whether they're in use or not.

This is necessary in case someone has leaked a connection somewhere.

However, this means the user of any of those closed connections gets unpleasant 
and expected error messages :-S

The options, as I see them, are:

- Do as current, maybe add more warnings on tin.

- Maybe replace closed connections with an object that has no attributes and 
raises an error in __getattr__

- Something else?

I'm open to suggestions...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope-DB mailing list