[Zope] bug in ZSQL method result caching.

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Tue, 09 Feb 1999 17:54:29 +1100


a quick note: There appears to be a bug (for me, at least :) in the
Result Caching in ZSQL Methods. If you set the cache time to non-zero,
then you can no longer use the method. It _appears_ that this is caused
by the code on line 400 of lib/python/Shared/DC/ZRDB/DA.py,
    if self.cache_time_ > 0 and self.self.max_cache_ > 0:
removing that duplicate 'self.' makes it work again... 

(usual disclaimers: works for me, ymmv)

Anthony
(yes, I put it in the Collector)