zope.app.error-3.5.3/0000755000177100020040000000000011437464032014276 5ustar menesismenesiszope.app.error-3.5.3/CHANGES.txt0000644000177100020040000000155111437463654016122 0ustar menesismenesis======= CHANGES ======= 3.5.3 (2010-09-01) ------------------ - Removed the dependency on zope.app.publisher, added missing dependencies. - Replaced the use of zope.deferredimport with direct imports. 3.5.2 (2009-01-22) ------------------ - Removed zope.app.zapi from dependencies, replacing its uses with direct imports. - Clean dependencies. - Changed mailing list address to zope-dev@zope.org, changed url from cheeseshop to pypi. - Use zope.ManageServices permission instead of zope.ManageContent for errorRedirect view and menu item, because all IErrorReportingUtility views are registered for zope.ManageServices as well. - Fix package's README.txt 3.5.1 (2007-09-27) ------------------ - rebumped to replace faulty egg 3.5.0 ----- - Move core components to ``zope.error`` 3.4.0 (2007-09-24) ------------------ - Initial documented release zope.app.error-3.5.3/PKG-INFO0000644000177100020040000000410311437464032015371 0ustar menesismenesisMetadata-Version: 1.0 Name: zope.app.error Version: 3.5.3 Summary: Error reporting utility management UI for Zope3 Home-page: http://pypi.python.org/pypi/zope.app.error Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: This package provides management views for the error reporting utility defined in zope.error package. ======= CHANGES ======= 3.5.3 (2010-09-01) ------------------ - Removed the dependency on zope.app.publisher, added missing dependencies. - Replaced the use of zope.deferredimport with direct imports. 3.5.2 (2009-01-22) ------------------ - Removed zope.app.zapi from dependencies, replacing its uses with direct imports. - Clean dependencies. - Changed mailing list address to zope-dev@zope.org, changed url from cheeseshop to pypi. - Use zope.ManageServices permission instead of zope.ManageContent for errorRedirect view and menu item, because all IErrorReportingUtility views are registered for zope.ManageServices as well. - Fix package's README.txt 3.5.1 (2007-09-27) ------------------ - rebumped to replace faulty egg 3.5.0 ----- - Move core components to ``zope.error`` 3.4.0 (2007-09-24) ------------------ - Initial documented release Keywords: zope3 error reporting utility views UI Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Topic :: Internet :: WWW/HTTP Classifier: Framework :: Zope3 zope.app.error-3.5.3/README.txt0000644000177100020040000000014611437463654016006 0ustar menesismenesisThis package provides management views for the error reporting utility defined in zope.error package. zope.app.error-3.5.3/setup.py0000644000177100020040000000472011437463654016024 0ustar menesismenesis############################################################################## # # Copyright (c) 2006 Zope Foundation 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. # ############################################################################## # This package is developed by the Zope Toolkit project, documented here: # http://docs.zope.org/zopetoolkit # When developing and releasing this package, please follow the documented # Zope Toolkit policies as described by this documentation. ############################################################################## """Setup for zope.app.error package $Id: setup.py 116092 2010-09-01 14:38:09Z menesis $ """ import os from setuptools import setup, find_packages def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() setup(name='zope.app.error', version='3.5.3', author='Zope Corporation and Contributors', author_email='zope-dev@zope.org', description = "Error reporting utility management UI for Zope3", long_description=( read('README.txt') + '\n\n' + read('CHANGES.txt') ), license='ZPL 2.1', keywords = "zope3 error reporting utility views UI", classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Zope Public License', 'Programming Language :: Python', 'Natural Language :: English', 'Operating System :: OS Independent', 'Topic :: Internet :: WWW/HTTP', 'Framework :: Zope3'], url='http://pypi.python.org/pypi/zope.app.error', packages=find_packages('src'), package_dir = {'': 'src'}, extras_require=dict( test=['zope.app.testing']), namespace_packages=['zope', 'zope.app'], install_requires=['setuptools', 'zope.component', 'zope.error', 'zope.publisher', 'zope.traversing', ], include_package_data = True, zip_safe = False, ) zope.app.error-3.5.3/COPYRIGHT.txt0000644000177100020040000000004011437463654016412 0ustar menesismenesisZope Foundation and Contributorszope.app.error-3.5.3/LICENSE.txt0000644000177100020040000000402611437463654016134 0ustar menesismenesisZope Public License (ZPL) Version 2.1 A copyright notice accompanies this license document that identifies the copyright holders. This license has been certified as open source. It has also been designated as GPL compatible by the Free Software Foundation (FSF). Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions in source code must retain the accompanying copyright notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the accompanying copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Names of the copyright holders must not be used to endorse or promote products derived from this software without prior written permission from the copyright holders. 4. The right to distribute this software or to use it for any purpose does not give you the right to use Servicemarks (sm) or Trademarks (tm) of the copyright holders. Use of them is covered by separate agreement with the copyright holders. 5. If any files are modified, you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. Disclaimer THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. zope.app.error-3.5.3/bootstrap.py0000644000177100020040000000337711437463654016710 0ustar menesismenesis############################################################################## # # Copyright (c) 2006 Zope Foundation 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 a buildout-based project Simply run this script in a directory containing a buildout.cfg. The script accepts buildout command-line options, so you can use the -c option to specify an alternate configuration file. $Id: bootstrap.py 112925 2010-06-02 15:54:38Z janwijbrand $ """ import os, shutil, sys, tempfile, urllib2 tmpeggs = tempfile.mkdtemp() ez = {} exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' ).read() in ez ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) import pkg_resources cmd = 'from setuptools.command.easy_install import main; main()' if sys.platform == 'win32': cmd = '"%s"' % cmd # work around spawn lamosity on windows ws = pkg_resources.working_set assert os.spawnle( os.P_WAIT, sys.executable, sys.executable, '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout', dict(os.environ, PYTHONPATH= ws.find(pkg_resources.Requirement.parse('setuptools')).location ), ) == 0 ws.add_entry(tmpeggs) ws.require('zc.buildout') import zc.buildout.buildout zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap']) shutil.rmtree(tmpeggs) zope.app.error-3.5.3/setup.cfg0000644000177100020040000000007311437464032016117 0ustar menesismenesis[egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 zope.app.error-3.5.3/src/0000755000177100020040000000000011437464032015065 5ustar menesismenesiszope.app.error-3.5.3/src/zope.app.error.egg-info/0000755000177100020040000000000011437464032021443 5ustar menesismenesiszope.app.error-3.5.3/src/zope.app.error.egg-info/PKG-INFO0000644000177100020040000000410311437464031022535 0ustar menesismenesisMetadata-Version: 1.0 Name: zope.app.error Version: 3.5.3 Summary: Error reporting utility management UI for Zope3 Home-page: http://pypi.python.org/pypi/zope.app.error Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: This package provides management views for the error reporting utility defined in zope.error package. ======= CHANGES ======= 3.5.3 (2010-09-01) ------------------ - Removed the dependency on zope.app.publisher, added missing dependencies. - Replaced the use of zope.deferredimport with direct imports. 3.5.2 (2009-01-22) ------------------ - Removed zope.app.zapi from dependencies, replacing its uses with direct imports. - Clean dependencies. - Changed mailing list address to zope-dev@zope.org, changed url from cheeseshop to pypi. - Use zope.ManageServices permission instead of zope.ManageContent for errorRedirect view and menu item, because all IErrorReportingUtility views are registered for zope.ManageServices as well. - Fix package's README.txt 3.5.1 (2007-09-27) ------------------ - rebumped to replace faulty egg 3.5.0 ----- - Move core components to ``zope.error`` 3.4.0 (2007-09-24) ------------------ - Initial documented release Keywords: zope3 error reporting utility views UI Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Topic :: Internet :: WWW/HTTP Classifier: Framework :: Zope3 zope.app.error-3.5.3/src/zope.app.error.egg-info/top_level.txt0000644000177100020040000000000511437464031024167 0ustar menesismenesiszope zope.app.error-3.5.3/src/zope.app.error.egg-info/SOURCES.txt0000644000177100020040000000165311437464031023333 0ustar menesismenesisCHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt bootstrap.py buildout.cfg setup.py src/zope/__init__.py src/zope.app.error.egg-info/PKG-INFO src/zope.app.error.egg-info/SOURCES.txt src/zope.app.error.egg-info/dependency_links.txt src/zope.app.error.egg-info/namespace_packages.txt src/zope.app.error.egg-info/not-zip-safe src/zope.app.error.egg-info/requires.txt src/zope.app.error.egg-info/top_level.txt src/zope/app/__init__.py src/zope/app/error/README.txt src/zope/app/error/__init__.py src/zope/app/error/configure.zcml src/zope/app/error/error.py src/zope/app/error/interfaces.py src/zope/app/error/tests.py src/zope/app/error/browser/__init__.py src/zope/app/error/browser/configure.zcml src/zope/app/error/browser/error.gif src/zope/app/error/browser/error.pt src/zope/app/error/browser/error_config.pt src/zope/app/error/browser/error_service.gif src/zope/app/error/browser/errorentry.pt src/zope/app/error/browser/texttbentry.ptzope.app.error-3.5.3/src/zope.app.error.egg-info/namespace_packages.txt0000644000177100020040000000001611437464031025772 0ustar menesismenesiszope zope.app zope.app.error-3.5.3/src/zope.app.error.egg-info/not-zip-safe0000644000177100020040000000000111437463655023703 0ustar menesismenesis zope.app.error-3.5.3/src/zope.app.error.egg-info/dependency_links.txt0000644000177100020040000000000111437464031025510 0ustar menesismenesis zope.app.error-3.5.3/src/zope.app.error.egg-info/requires.txt0000644000177100020040000000013411437464031024040 0ustar menesismenesissetuptools zope.component zope.error zope.publisher zope.traversing [test] zope.app.testingzope.app.error-3.5.3/src/zope/0000755000177100020040000000000011437464032016042 5ustar menesismenesiszope.app.error-3.5.3/src/zope/__init__.py0000644000177100020040000000031111437463654020157 0ustar menesismenesis# this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.app.error-3.5.3/src/zope/app/0000755000177100020040000000000011437464032016622 5ustar menesismenesiszope.app.error-3.5.3/src/zope/app/__init__.py0000644000177100020040000000031111437463654020737 0ustar menesismenesis# this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.app.error-3.5.3/src/zope/app/error/0000755000177100020040000000000011437464032017753 5ustar menesismenesiszope.app.error-3.5.3/src/zope/app/error/README.txt0000644000177100020040000000062211437463654021462 0ustar menesismenesis====== README ====== This package provides an error reporting utility which is able to store errors. Let's create one: >>> from zope.error.error import ErrorReportingUtility >>> util = ErrorReportingUtility() >>> util >>> from zope.error.interfaces import IErrorReportingUtility >>> IErrorReportingUtility.providedBy(util) True zope.app.error-3.5.3/src/zope/app/error/__init__.py0000644000177100020040000000001611437463654022072 0ustar menesismenesis# import this zope.app.error-3.5.3/src/zope/app/error/interfaces.py0000644000177100020040000000145611437463654022467 0ustar menesismenesis############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation 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. # ############################################################################## """Error Reporting Utility interfaces """ # BBB from zope.error.interfaces import (IErrorReportingUtility, ILocalErrorReportingUtility) zope.app.error-3.5.3/src/zope/app/error/configure.zcml0000644000177100020040000000021411437463654022631 0ustar menesismenesis zope.app.error-3.5.3/src/zope/app/error/tests.py0000644000177100020040000000171611437463654021505 0ustar menesismenesis############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation 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. # ############################################################################## """Error Reporting Utility Tests """ import unittest import doctest def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite('README.txt', optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS, ), )) if __name__ == '__main__': unittest.main(defaultTest='test_suite') zope.app.error-3.5.3/src/zope/app/error/browser/0000755000177100020040000000000011437464032021436 5ustar menesismenesiszope.app.error-3.5.3/src/zope/app/error/browser/__init__.py0000644000177100020040000000413011437463654023556 0ustar menesismenesis############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation 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. # ############################################################################## """Define view component for event utility control. $Id: __init__.py 112925 2010-06-02 15:54:38Z janwijbrand $ """ from zope.component import getUtility from zope.publisher.browser import BrowserView from zope.traversing.browser.absoluteurl import absoluteURL from zope.error.interfaces import IErrorReportingUtility from zope.error.interfaces import ILocalErrorReportingUtility class EditErrorLog(object): __used_for__ = ILocalErrorReportingUtility def updateProperties(self, keep_entries, copy_to_zlog=None, ignored_exceptions=None): errorLog = self.context if copy_to_zlog is None: copy_to_zlog = 0 errorLog.setProperties(keep_entries, copy_to_zlog, ignored_exceptions) return self.request.response.redirect('@@configure.html') class ErrorRedirect(BrowserView): def action(self): # Some locations (eg ++etc++process) throw a TypeError exception when # finding their absoluteurl, if this happens catch the error and # redirect the browser to the site root "/@@errorRedirect.html" # to handle redirection to the site error logger instead try: err = getUtility(IErrorReportingUtility) url = absoluteURL(err, self.request) except TypeError: url = self.request.getApplicationURL() + "/@@errorRedirect.html" else: url = url + "/@@SelectedManagementView.html" self.request.response.redirect(url) zope.app.error-3.5.3/src/zope/app/error/browser/errorentry.pt0000644000177100020040000000444111437463654024232 0ustar menesismenesis View Error Log Report

Header

Exception traceback

The specified log entry was not found. It may have expired.
Time
Time
User
joe
Request URL
http://zeomega.com
Exception Type
AttributeError
Exception Value
zzope
Traceback
 

Traceback (HTML)
      Traceback (text)
    

Display traceback as text

REQUEST

zope.app.error-3.5.3/src/zope/app/error/browser/error.pt0000644000177100020040000000342411437463654023150 0ustar menesismenesis View Error Log Report

Exception Log (most recent first)

This page lists the exceptions that have occurred in this site recently.

No exceptions logged.
Time User Exception
Time joe AttributeError: Application object has no attribute "zzope"
zope.app.error-3.5.3/src/zope/app/error/browser/error_config.pt0000644000177100020040000000311711437463654024474 0ustar menesismenesis Configure Error Log

You can configure how many exceptions should be kept and whether the exceptions should be copied to Zope's event log file(s).


Number of exceptions to keep
Copy exceptions to the event log
Ignored exception types