On Thu, Mar 11, 2004 at 11:49:34AM +0000, Chris Withers wrote: > Marco Bizzarri wrote: > > > I'm trying something inspired to that at the moment... I succeeded in > > installing an hack, very inspired from your code (but at a much simpler > > level) and some code in the SecurityManager, > > ?!
Look in AccessControl/SecurityManagement.py, the getSecurityManager()... it does in that way. > > where I mantain a dictionary > > of connections, indexed by the result of thread.get_ident(). > > :-( I know, it is an hack :( > > Once a > > thread needs a new connection, either it is present in the dictionary > > or not. If it is present, give it to the thread and assign that to the > > _v_database_connection attribute. Otherwise, create a new one, put in > > the dictionary, and go on as before. > > When do these connections get closed? Never, for the moment. -- Marco Bizzarri - Amministratore Delegato - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588
Description: PGP signature
_______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )