[Zope-dev] Generations in Zope 2

Wichert Akkerman wichert at wiggy.net
Tue Dec 15 05:20:19 EST 2009


On 12/15/09 11:02 , Christian Zagrodnick wrote:
> Hi,
>
> to get generations working in Zope 2 the following subscriber is needed:
>
> @zope.component.adapter(zope.app.appsetup.IProcessStartingEvent)
> def evolve_minimum(event):
>      zope.app.generations.generations.evolve(
>          Zope2.DB, zope.app.generations.generations.EVOLVEMINIMUM)
>
>
> I think should become part of Zope 2 / Five. Objections?

-1, this would add a needless dependency on zope.app.generations to Zope 
2 as far as I can see. Why not move include this in zope.app.generations 
itself in a [zope2] extra ? Or create a tiny five.generations package to 
do this.

Wichert.


More information about the Zope-Dev mailing list