Fwd: Draft CatalogAware Howto
Hello, I added minor changes to the draft CatalogAware Howto. It can be viewed on <http://www.zope.org/Members/AlexR/CatalogAware/>. Could any of you experienced ZClass users have a quick look? I'd like to make sure I do not say something plain wrong before I release it. Thanks. Alexandre
Date: Sun, 17 Oct 1999 21:16:29 +0100 To: zope@zope.org From: Alexandre Ratti <ratti@dial.oleane.com> Subject: Draft CatalogAware Howto and ZClass question
Hello,
I started putting together a Howto on creating a CatalogAware ZClass. I mainly cut and pasted information from this list.
The 1st draft can be viewed on <http://www.zope.org/Members/AlexR/CatalogAware/>. If you find inaccuracies or can offer additional information, please get in touch. This howto hasn't been submitted for cataloging yet.
At 12:53 22/10/99 , Alexandre Ratti wrote:
Hello,
I added minor changes to the draft CatalogAware Howto. It can be viewed on <http://www.zope.org/Members/AlexR/CatalogAware/>.
Could any of you experienced ZClass users have a quick look? I'd like to make sure I do not say something plain wrong before I release it.
Thanks.
Alexandre
I have been thinking about this lately. When changing the default catalog, you are still indexed in the old catalog (if there was a catalog with the old default name), because adding a CatalogAware based ZClass instance causes it to add itself to the default catalog. Also, you are not yet indexed in the new default catalog, yet we use reindex_object, which first removes you from the catalog. Right now, this is not an error, it silently ignores this. In the future however, this may become an error. Therefore, the proper way of changing the default cataloger is: <dtml-call unindex_object> <dtml-call "manage_editCataloger('newCatalogID', REQUEST)"> <dtml-call index_object> -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (2)
-
Alexandre Ratti -
Martijn Pieters