Re: Generations in Zope 2

Lennart Regebro <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Tue, Dec 15, 2009 at 11:02, Christian Zagrodnick <[email protected]> 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?

Not really, but by making it a part of Five you make any use of
generations dependant on having at least that version of Five. If
that's OK for you, then no objections. The alternative would be a
separate production but admittedly, having a separate product just to
register single-line adapter seems silly. :)
-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.