[Checkins] SVN: zope.app.appsetup/trunk/ Event interfaces / implementations moved to ``zope.processlifetime``, v. 1.0.

Tres Seaver tseaver at palladion.com
Wed May 13 15:26:42 EDT 2009


Log message for revision 99909:
  Event interfaces / implementations moved to ``zope.processlifetime``, v. 1.0.
  
  Depend on this package, and add BBB imports.
  

Changed:
  U   zope.app.appsetup/trunk/CHANGES.txt
  U   zope.app.appsetup/trunk/README.txt
  U   zope.app.appsetup/trunk/setup.py
  U   zope.app.appsetup/trunk/src/zope/app/appsetup/interfaces.py

-=-
Modified: zope.app.appsetup/trunk/CHANGES.txt
===================================================================
--- zope.app.appsetup/trunk/CHANGES.txt	2009-05-13 19:07:07 UTC (rev 99908)
+++ zope.app.appsetup/trunk/CHANGES.txt	2009-05-13 19:26:42 UTC (rev 99909)
@@ -1,10 +1,11 @@
-CHANGES
-=======
+zope.app.appsetup Changelog
+===========================
 
-3.10.2 (unreleased)
--------------------
+3.11 (unreleased)
+-----------------
 
-- Nothing changed yet.
+- Event interfaces / implementations moved to ``zope.processlifetime``,
+  version 1.0.  Depend on this package, and add BBB imports.
 
 
 3.10.1 (2009-03-31)

Modified: zope.app.appsetup/trunk/README.txt
===================================================================
--- zope.app.appsetup/trunk/README.txt	2009-05-13 19:07:07 UTC (rev 99908)
+++ zope.app.appsetup/trunk/README.txt	2009-05-13 19:26:42 UTC (rev 99909)
@@ -1 +1,4 @@
-This package provides application setup helpers.
+zope.app.appsetup README
+========================
+
+This package provides application setup helpers for the Zope3 appserver.

Modified: zope.app.appsetup/trunk/setup.py
===================================================================
--- zope.app.appsetup/trunk/setup.py	2009-05-13 19:07:07 UTC (rev 99908)
+++ zope.app.appsetup/trunk/setup.py	2009-05-13 19:26:42 UTC (rev 99909)
@@ -69,6 +69,7 @@
                       'zope.event',
                       'zope.interface',
                       'zope.location',
+                      'zope.processlifetime',
                       'zope.session',
                       'zope.site',
                       'zope.security',

Modified: zope.app.appsetup/trunk/src/zope/app/appsetup/interfaces.py
===================================================================
--- zope.app.appsetup/trunk/src/zope/app/appsetup/interfaces.py	2009-05-13 19:07:07 UTC (rev 99908)
+++ zope.app.appsetup/trunk/src/zope/app/appsetup/interfaces.py	2009-05-13 19:26:42 UTC (rev 99909)
@@ -1,6 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2004 Zope Corporation and Contributors.
+# Copyright (c) 2004-2009 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -15,37 +15,15 @@
 
 $Id$
 """
+# BBB imports
+from zope.processlifetime import IDatabaseOpened
+from zope.processlifetime import DatabaseOpened
+from zope.processlifetime import IDatabaseOpenedWithRoot
+from zope.processlifetime import DatabaseOpenedWithRoot
+from zope.processlifetime import IProcessStarting
+from zope.processlifetime import ProcessStarting
 
-from zope import interface
-
-
-class IDatabaseOpenedEvent(interface.Interface):
-    """The main database has been opened."""
-
-    database = interface.Attribute("The main database.")
-
-class DatabaseOpened(object):
-    interface.implements(IDatabaseOpenedEvent)
-
-    def __init__(self, database):
-        self.database = database
-
-class IDatabaseOpenedWithRootEvent(interface.Interface):
-    """The main database has been opened."""
-
-    database = interface.Attribute("The main database.")
-
-class DatabaseOpenedWithRoot(object):
-    interface.implements(IDatabaseOpenedWithRootEvent)
-
-    def __init__(self, database):
-        self.database = database
-
-class IProcessStartingEvent(interface.Interface):
-    """The application server process is starting."""
-
-class ProcessStarting(object):
-    interface.implements(IProcessStartingEvent)
-
-
-    
+# BBB aliases
+IDatabaseOpenedEvent = IDatabaseOpened
+IDatabaseOpenedWithRootEvent = IDatabaseOpenedWithRoot
+IProcessStartingEvent = IProcessStarting



More information about the Checkins mailing list