[Zope-dev] Storing lots of big objects in containers

Morten W. Petersen morten@esol.no
24 Feb 2001 15:10:33 +0100


[Erik Enge]

| Can't you just subclass the BTree Folder as you would with OFS.Folder?
| 
| I think you might be confusing the Zope BTree implementation with the
| BTree Folder Product?

I've tried subclassing BTreeFolder, but then, whenever the object is
accessed, zope falls flat on its face.  :-\

Tried again, now this error is raised:


"""
 Zope Error
Zope has encountered an error while publishing this resource. 

TypeError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/morten/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: CatalogAware)
  File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: retrieve_messages)
  File /home/morten/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: retrieve_messages)
  File /home/morten/Zope-2.2.4-src/lib/python/Products/GUM/gum.py, line 579, in retrieve_messages
    (Object: CatalogAware)
  File /home/morten/Zope-2.2.4-src/lib/python/Products/GUM/gum.py, line 655, in _retrieve_messages
    (Object: CatalogAware)
  File /home/morten/Zope-2.2.4-src/lib/python/Products/GUM/gum.py, line 986, in drop_message
    (Object: CatalogAware)
  File /home/morten/Zope/lib/python/Products/RFC822Message/util.py, line 86, in store_message
    (Object: CatalogAware)
  File /home/morten/Zope/lib/python/Products/RFC822Message/rfc822_message.py, line 66, in manage_add_rfc822_message
    (Object: CatalogAware)
  File /home/morten/Zope-2.3.0-src/lib/python/OFS/ObjectManager.py, line 285, in _setObject
    (Object: CatalogAware)
  File /home/morten/Zope/lib/python/Products/BTreeFolder/BTreeFolder.py, line 187, in _setOb
    (Object: CatalogAware)
TypeError: object does not support item assignment
"""

*sound of headscratching*

-Morten