[Checkins] SVN: zope.app.wsgi/trunk/ Import database events directly from ``zope.processlifetime`` instead of using BBB imports in ``zope.app.appsetup``.

Michael Howitz mh at gocept.com
Fri Jun 12 15:01:02 EDT 2009


Log message for revision 100900:
  Import database events directly from ``zope.processlifetime`` instead of using BBB imports in ``zope.app.appsetup``.
  
  

Changed:
  U   zope.app.wsgi/trunk/CHANGES.txt
  U   zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py

-=-
Modified: zope.app.wsgi/trunk/CHANGES.txt
===================================================================
--- zope.app.wsgi/trunk/CHANGES.txt	2009-06-12 18:59:03 UTC (rev 100899)
+++ zope.app.wsgi/trunk/CHANGES.txt	2009-06-12 19:01:01 UTC (rev 100900)
@@ -5,14 +5,15 @@
 3.5.3 (unreleased)
 ------------------
 
-- ...
+- Import database events directly from ``zope.processlifetime``
+  instead of using BBB imports in ``zope.app.appsetup``.
 
 3.5.2 (2009-04-03)
 ------------------
 
 - The ``WSGIPublisherApplication`` uses now the ´´ILoggingInfo´´ concept given
   from zope.publisher.interfaces.logginginfo for log user infos usable for
-  access logs. This allows you to implement your own access log user info 
+  access logs. This allows you to implement your own access log user info
   message. See zope.publisher.interfaces.logginginfo.ILoggingInfo for more
   information.
 
@@ -30,7 +31,7 @@
 
 - Add an application factory for Paste. So Zope application can now be
   easily deployed with Paste .ini configuration like this::
-  
+
     [app:main]
     use = egg:zope.app.wsgi
     config_file = %(here)s/zope.conf
@@ -39,11 +40,11 @@
   The config_file is a required argument, however the handle_errors
   defaults to True if not specified. Setting it to False allows you to
   make WSGIPublisherApplication not handle exceptions itself but
-  propagate them to an upper middleware, like WebError or something. 
+  propagate them to an upper middleware, like WebError or something.
 
 - The ``WSGIPublisherApplication`` constructor and ``getWSGIApplication``
   function now accept optional ``handle_errors`` argument, described
-  above. 
+  above.
 
 - Change mailing list address to zope-dev at zope.org instead of retired
   one.

Modified: zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py
===================================================================
--- zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py	2009-06-12 18:59:03 UTC (rev 100899)
+++ zope.app.wsgi/trunk/src/zope/app/wsgi/__init__.py	2009-06-12 19:01:01 UTC (rev 100900)
@@ -19,6 +19,7 @@
 import sys
 import logging
 import ZConfig
+import zope.processlifetime
 
 from zope.event import notify
 from zope.interface import implements
@@ -142,7 +143,7 @@
 
     # Connect to and open the database, notify subscribers.
     db = appsetup.multi_database(options.databases)[0][0]
-    notify(appsetup.interfaces.DatabaseOpened(db))
+    notify(zope.processlifetime.DatabaseOpened(db))
 
     return db
 



More information about the Checkins mailing list