Quoting Oleg Broytmann <[EMAIL PROTECTED]>:
On Tue, Mar 21, 2006 at 10:32:20PM -0600, [EMAIL PROTECTED] wrote:
# close connection
connection.close()
sqlhub.processConnection = connection # is this required?
# do it all again
connection_string='sqlite:/' + filename.replace(':', '|')
connection = connectionForURI(connection_string)
dbconnection.TheURIOpener objects caches the connections by URIs. If you
want to reopen another connection with the same URI you have to clean
.cachedURIs mapping first. (I got the idea from the code, but I never
tested it.)
Oleg.
Thanks Oleg,
I added a:
dbconnection.TheURIOpener.cachedURIs={}
before opening the new connection and everything works great.
Thanks for all your help. It is very much appreciated.
Regards,
Ray Smith
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss