[Zope-CMF] Small CMFCatalogAware refactoring

Julien Anguenot ja at nuxeo.com
Thu Sep 8 08:52:16 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I did a small refactoring on the CMFCatalogAware in changesets [38390]
(1.5) and [38391] (trunk)

The CMFCatalogAware class definition defines now 2 new methods,
_getCatalogTool() and _getWorkflowTool(), that are used internaly while
looking up for the catalog or workflow tool.

This is pretty useful for a given content type to specify a dedicated
catalog or workflow tool. The specific content type just have to
override these methods.

A remaining issue is within reindexObjectSecurity() and the sub-objects
reindexation because, eventually, the sub-objects can be within a
different catalog and in this case if one is overriding the
_getCatalogTool() it will have to override the reindexObjectSecurity()
as well to deal with this. (I put a XXX within this method)

Thoughts ?

	J.

- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDIDQAGhoG8MxZ/pIRAm7ZAJ9rpBggDanHSkLPtlsRvtMAMhLP9ACfcu3V
orUXHxELB7dRg6E6HcIZN7E=
=LKKV
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list