[Zope] CatalogPathAwareness and zope.lifecycle

Sascha Welter zopelist at betabug.ch
Thu Apr 14 03:54:35 EDT 2011

Hello Zopistas,

as I was just testing moving a big, old application to Zope 2.13, I was
greeted with the following error:

from Products.ZCatalog.CatalogPathAwareness import CatalogPathAware
ImportError: cannot import name CatalogPathAware

Looking at the code informs me that CatalogPathAwareness is deprecated,
but wouldn't that mean that it should still be there?

Next part of the question:
Looking at http://pypi.python.org/pypi/zope.lifecycleevent
I see some examples about calling those notify() events, but nothing
that would tell me how to replace CatalogPathAware with this stuff.
Googling for [CatalogPathAware zope.lifecycleevent] does not give me
anything besides some SVN commit messages.

So, anybody have some examples of doing this?

Specifically an example for replacing CatalogPathAware with
zope.lifecycleevent. Since this is what the depreciation message talks
about, it's been done many times over and should be well documented,

I also hope that developers are aware that this change involves changing the
base classes that classes in production systems out there are based on.

Thank you very much,



More information about the Zope mailing list