Hi All, Around line 42 of DA.py, we've got the following: try: from IOBTree import Bucket except: Bucket=lambda:{} Given that IOBTree has been dead for some time now, can we remove this and replace instances of Bucket() with {} or is there a more appropriate object we can use from the BTrees package? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Chris Withers wrote at 2006-11-16 16:42 +0000:
Around line 42 of DA.py, we've got the following:
try: from IOBTree import Bucket except: Bucket=lambda:{}
Given that IOBTree has been dead for some time now, can we remove this and replace instances of Bucket() with {} or is there a more appropriate object we can use from the BTrees package?
from BTrees.IOBTree import IOBucket
would be the new equivalent to the old "IOBTree.Bucket". -- Dieter
Dieter Maurer wrote:
from BTrees.IOBTree import IOBucket
would be the new equivalent to the old "IOBTree.Bucket".
Thanks, I'm currently working up some unit tests for the caching code and I'll switch this in once I've got some failing tests. It's a shame no-one has replied to my other email... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers -
Dieter Maurer