[ZODB-Dev] Re: Dynamically Updating Objects
Chris S
chrisspen at gmail.com
Tue Jul 18 11:09:11 EDT 2006
I'm trying to make ZODB dynamically reload classes when their source
code changes. However, even though I close my connection, reload the
module, then call Connection.resetCaches(), my object still doesn't
use the new class definition. Is there any way to fix this?
Attached is my simple test script and a sample module containing the
class Foo to be updated. To see the problem, modify Foo's return value
in sample.py while simultaneously running test.py.
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 1190 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20060718/ffa6b762/test.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.py
Type: text/x-python
Size: 103 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20060718/ffa6b762/sample.py
More information about the ZODB-Dev
mailing list