[Checkins] SVN: zope.error/trunk/ Move bootstrapping logic of error log to zope.app.appsetup to remove
Martijn Faassen
faassen at infrae.com
Fri Jan 30 06:58:25 EST 2009
Log message for revision 95546:
Move bootstrapping logic of error log to zope.app.appsetup to remove
dependency on zope.app.appsetup.
Changed:
U zope.error/trunk/CHANGES.txt
U zope.error/trunk/setup.py
D zope.error/trunk/src/zope/error/bootstrap.py
-=-
Modified: zope.error/trunk/CHANGES.txt
===================================================================
--- zope.error/trunk/CHANGES.txt 2009-01-30 11:53:13 UTC (rev 95545)
+++ zope.error/trunk/CHANGES.txt 2009-01-30 11:58:25 UTC (rev 95546)
@@ -2,8 +2,8 @@
CHANGES
=======
-Version 3.6 (unreleased)
-------------------------
+Version 3.6.0 (unreleased)
+--------------------------
- Use zope.container instead of zope.app.container
Modified: zope.error/trunk/setup.py
===================================================================
--- zope.error/trunk/setup.py 2009-01-30 11:53:13 UTC (rev 95545)
+++ zope.error/trunk/setup.py 2009-01-30 11:58:25 UTC (rev 95546)
@@ -24,7 +24,7 @@
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name='zope.error',
- version = '3.6',
+ version = '3.6.0',
author='Zope Corporation and Contributors',
author_email='zope3-dev at zope.org',
description = "An error reporting utility for Zope3",
@@ -53,9 +53,8 @@
namespace_packages=['zope',],
install_requires=['setuptools',
'zope.exceptions',
- 'zope.app.appsetup',
'zope.publisher',
- 'zope.app.container',
+ 'zope.container',
],
include_package_data = True,
Deleted: zope.error/trunk/src/zope/error/bootstrap.py
===================================================================
--- zope.error/trunk/src/zope/error/bootstrap.py 2009-01-30 11:53:13 UTC (rev 95545)
+++ zope.error/trunk/src/zope/error/bootstrap.py 2009-01-30 11:58:25 UTC (rev 95546)
@@ -1,38 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2002, 2004 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap code for error reporting utility.
-
-$Id: bootstrap.py 70794 2006-10-19 04:29:42Z baijum $
-"""
-
-import transaction
-
-from zope.app.appsetup.bootstrap import ensureUtility, getInformationFromEvent
-
-from zope.error.error import RootErrorReportingUtility
-from zope.error.interfaces import IErrorReportingUtility
-
-def bootStrapSubscriber(event):
- """Subscriber to the IDataBaseOpenedEvent
-
- Create utility at that time if not yet present
- """
-
- db, connection, root, root_folder = getInformationFromEvent(event)
-
- ensureUtility(root_folder, IErrorReportingUtility, '',
- RootErrorReportingUtility, copy_to_zlog=False, asObject=True)
-
- transaction.commit()
- connection.close()
More information about the Checkins
mailing list