-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 15 January 2003 04:56 pm, you wrote:
> Module globals would be the way to go.

Okay... my ObjectStore is now a global of the utils class.... so it is only
being created once.

class ForumUtils:
        store = None
        def __init__(self):
                # Setup globals
                if ForumUtils.store == None:
                        ForumUtils.store = MySQLObjectStore(user='USERNAME', 
passwd='PASSWORD')
                        ForumUtils.store.readModelFileNamed('../lib/Forum/forum')

Now... the real test... what happens after clicking like mad on reload for a
while..

After a while I eventually end up with:
OperationalError: (1040, 'Too many connections')

Which tells me that the connections are not being recycled?

Or maybe I am doing something wrong?

- --
Luke Holden
eBI Solutions
Main: (949) 387-5182
Email: [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Jgn33q5xXfLZTQkRAghIAJ9J0HDKgcp808AcARoELZFYq5u8KACfS3YM
M5Ua+rjsYxOWldbxn8g3Vno=
=K781
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to