On Thu, Sep 14, 2006 at 01:40:20AM +0900, ?$B6L1[Bg51 wrote:
> hmm, it seems that an object inherites SQLObject is not freed, but a
> plain object is freed.
There is a patch created by Dan Pascu <[EMAIL PROTECTED]> that may fix
that. Can you test it (attached)? Does it help?
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
diff -ur /usr/lib/python2.3/site-packages/sqlobject/main.py sqlobject/main.py
--- /usr/lib/python2.3/site-packages/sqlobject/main.py 2005-10-02
01:59:35.000000000 +0300
+++ sqlobject/main.py 2006-05-27 04:24:26.000000000 +0300
@@ -32,6 +32,7 @@
USA.
"""
+import weakref
import threading
import sqlbuilder
import dbconnection
@@ -236,7 +237,7 @@
setattr(cls, attr, None)
def __init__(self, instance):
- self.instance = instance
+ self.instance = weakref.proxy(instance)
def setClass(cls, soClass):
cls.soClass = soClass
@@ -1501,7 +1502,7 @@
class SQLObjectState(object):
def __init__(self, soObject):
- self.soObject = soObject
+ self.soObject = weakref.proxy(soObject)
self.protocol = 'sql'
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss