I am storing my data in a BTreeFolder with _setOb(). I can access my objects with a URL (/myBTreeFolder/foo) but ZCatalog seems to be unable to find it. I store my data with _setOb() because _setObject() behaves like a normal folder. If I access /myBTreeFolder with a browser the content does not get displayed since it is stored in a the _tree object. Has someone seen a new version of BTreeFolder (I use version 2.0)? Could it be usefull to subclass BTreeFolder and wrap _getObject to call _getOb? thomas
Thomas Guettler writes:
I am storing my data in a BTreeFolder with _setOb(). I can access my objects with a URL (/myBTreeFolder/foo) but ZCatalog seems to be unable to find it.
I store my data with _setOb() because _setObject() behaves like a normal folder. "_setObject" calls the "manage_afterAdd" which (for "Catalog*Aware") does an "indexObject". When you avoid "_setObject", you must call "manage_afterAdd" yourself.
Dieter
participants (2)
-
Dieter Maurer -
Thomas Guettler