[Zope-dev] CatalogPathAwareness and zope.lifecycle

Tres Seaver tseaver at palladion.com
Sun Apr 17 12:34:16 EDT 2011


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

On 04/17/2011 10:08 AM, Sascha Welter wrote:
> (Sun, Apr 17, 2011 at 07:10:07AM -0400) Tres Seaver wrote/schrieb/egrapse:
>> Moving a "big old application" across multiple major versions at onece
>> of any platform is likely to be painful:
> 
> Tres,
> 
> I know how to move an app to newer zope versions. My apps are enough
> well behaved to have survived since 2.7 with few changes and from 2.10
> straight to 2.13 needed only very few adjustments so far.
> 
> What I want to know:
> 
> The term "CatalogPathAwareness" was not found in the archives of
> zope-dev in the last 6 years or so. Can any zope developer deprecate or
> remove things on their own without discussion?

"Code talks."  Hanno deprecated the CPA base class in r115308 in August
2010 with the comment:

 Fully deprecate both CatalogAwareness and CatalogPathAwareness. They
 are untested and unused. Event subscribers for zope.lifecycleevents
 are the way to go.

Note that this was in the midst of a set of *huge* improveements to the
catalog (the query plan stuff), for which we should be very grateful:
such improvements grant legitimacy to Hanno's judgement about the state
of the code.

Note that if you need time to finish revising code which depends on the
deprecated components, you can pin "Products.ZCatalog<=2.13.99" until
your code is ready:  that is one of the beauties of moving the code into
a separately-released distribution.

> Removing CatalogAware/CatalogPathAware from Products.ZCatalog is one
> point in question. Removing manage_afterAdd et al is another. This will
> break lots of code out there that would happily run on otherwise.

'manage_afterAdd' and siblings have been deprecated for a *long* time
(since Zope 2.9.0b1, 2005-12-06):

 http://svn.zope.org/Zope/tags/2.9.0b1/doc/CHANGES.txt?rev=40603&view=markup


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2rFogACgkQ+gerLs4ltQ78KQCgoEuO3hUUt4rokZ5qndyaRx1H
sZIAnjrRVwoQQmW1ncBoPO1/eN10M8rw
=AvWq
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list