zope.app.exception-3.6.3/ 0000755 0001771 0002004 00000000000 11566460715 016413 5 ustar menesis menesis 0000000 0000000 zope.app.exception-3.6.3/CHANGES.txt 0000644 0001771 0002004 00000002624 11566460705 020227 0 ustar menesis menesis 0000000 0000000 CHANGES
=======
3.6.3 (2011-05-23)
------------------
- Replaced an undeclared test dependency on ``zope.app.authentication`` with
``zope.password``.
3.6.2 (2010-09-14)
------------------
- No longer depend on ``zope.app.zptpage`` for tests.
- Replaced dependency on ``zope.app.securitypolicy`` by
``zope.securitypolicy``.
3.6.1 (2010-01-08)
------------------
- Require zope.browserpage which now contains ``namedtemplate``.
- Fix ftesting.zcml due to ``zope.securitypolicy`` update.
- Fix tests using a newer zope.publisher that requires zope.login.
3.6.0 (2009-05-18)
------------------
- ``ISystemErrorView`` interface has been moved to
``zope.browser.interfaces``, leaving BBB import here.
- Cut dependency on ``zope.formlib`` by requiring newer version of
``zope.app.pagetemplate`` which now contains ``namedtemplate``.
3.5.0 (2009-04-06)
------------------
- Use new ``zope.authentication`` instead of ``zope.app.security``.
- Removed deprecated code and thus removed dependency on zope.deferredimport.
- Removed old zpkg-related SETUP.cfg file.
3.4.2 (2009-01-27)
------------------
- Substitute zope.app.zapi by direct calls to its wrapped apis. See
bug 219302.
- Fixed author email and home page.
3.4.1 (2007-10-31)
------------------
- Resolve ``ZopeSecurityPolicy`` deprecation warning.
3.4.0 (2007-10-24)
------------------
- Initial release independent of the main Zope tree.
zope.app.exception-3.6.3/PKG-INFO 0000644 0001771 0002004 00000010022 11566460715 017503 0 ustar menesis menesis 0000000 0000000 Metadata-Version: 1.0
Name: zope.app.exception
Version: 3.6.3
Summary: Zope 3 exception views
Home-page: http://pypi.python.org/pypi/zope.app.exception
Author: Zope Corporation and Contributors
Author-email: zope-dev@zope.org
License: ZPL 2.1
Description: This packages provides Zope 3 browser views for some generic exceptions.
.. contents::
System Errors
=============
System Errors are errors representing a system failure. At the
application level, they are errors that are uncaught by the
application and that a developer hasn't provided a custom error view
for.
Zope provides a default system error view that prints an obnoxius
terse message and that sets the response status.
There is a simple view registered in ``ftesting.zcml`` which raises
``Exception()``:
>>> print http(r"""
... GET /error.html HTTP/1.1
... """)
HTTP/1.1 500 Internal Server Error
...
A system error occurred.
...
Another way of getting a system error is the occurrence of a system
error, such as ``ComponentLookupError``. I have registered a simple
view in ``ftesting.zcml``, too, that will raise a component lookup
error. So if we call ``componentlookuperror.html``, we should get the
error message:
>>> print http(r"""
... GET /componentlookuperror.html HTTP/1.1
... """)
HTTP/1.1 500 Internal Server Error
...
A system error occurred.
...
CHANGES
=======
3.6.3 (2011-05-23)
------------------
- Replaced an undeclared test dependency on ``zope.app.authentication`` with
``zope.password``.
3.6.2 (2010-09-14)
------------------
- No longer depend on ``zope.app.zptpage`` for tests.
- Replaced dependency on ``zope.app.securitypolicy`` by
``zope.securitypolicy``.
3.6.1 (2010-01-08)
------------------
- Require zope.browserpage which now contains ``namedtemplate``.
- Fix ftesting.zcml due to ``zope.securitypolicy`` update.
- Fix tests using a newer zope.publisher that requires zope.login.
3.6.0 (2009-05-18)
------------------
- ``ISystemErrorView`` interface has been moved to
``zope.browser.interfaces``, leaving BBB import here.
- Cut dependency on ``zope.formlib`` by requiring newer version of
``zope.app.pagetemplate`` which now contains ``namedtemplate``.
3.5.0 (2009-04-06)
------------------
- Use new ``zope.authentication`` instead of ``zope.app.security``.
- Removed deprecated code and thus removed dependency on zope.deferredimport.
- Removed old zpkg-related SETUP.cfg file.
3.4.2 (2009-01-27)
------------------
- Substitute zope.app.zapi by direct calls to its wrapped apis. See
bug 219302.
- Fixed author email and home page.
3.4.1 (2007-10-31)
------------------
- Resolve ``ZopeSecurityPolicy`` deprecation warning.
3.4.0 (2007-10-24)
------------------
- Initial release independent of the main Zope tree.
Keywords: zope3 exception view
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.exception-3.6.3/README.txt 0000644 0001771 0002004 00000000111 11566460705 020101 0 ustar menesis menesis 0000000 0000000 This packages provides Zope 3 browser views for some generic exceptions.
zope.app.exception-3.6.3/setup.py 0000644 0001771 0002004 00000005607 11566460705 020134 0 ustar menesis menesis 0000000 0000000 ##############################################################################
#
# Copyright (c) 2006-2009 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.exception package
"""
import os
from setuptools import setup, find_packages
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
version = '3.6.3'
setup(name='zope.app.exception',
version=version,
author='Zope Corporation and Contributors',
author_email='zope-dev@zope.org',
description='Zope 3 exception views',
long_description=(
read('README.txt')
+ '\n\n' +
'.. contents::'
+ '\n\n' +
read('src', 'zope', 'app', 'exception', 'browser', 'systemerror.txt')
+ '\n\n' +
read('CHANGES.txt')
),
keywords = "zope3 exception view",
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.exception',
license='ZPL 2.1',
packages=find_packages('src'),
package_dir = {'': 'src'},
namespace_packages=['zope', 'zope.app'],
extras_require=dict(test=[
'zope.app.testing',
'zope.app.zcmlfiles',
'zope.login',
'zope.password',
'zope.securitypolicy',
]),
install_requires=['setuptools',
'zope.interface',
'zope.publisher >= 3.12',
'zope.authentication',
'zope.browser>=1.2',
'zope.browserpage>=3.11.0',
'zope.component',
'zope.security',
],
include_package_data = True,
zip_safe = False,
)
zope.app.exception-3.6.3/COPYRIGHT.txt 0000644 0001771 0002004 00000000040 11566460705 020515 0 ustar menesis menesis 0000000 0000000 Zope Foundation and Contributors zope.app.exception-3.6.3/LICENSE.txt 0000644 0001771 0002004 00000004026 11566460705 020237 0 ustar menesis menesis 0000000 0000000 Zope 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.exception-3.6.3/bootstrap.py 0000644 0001771 0002004 00000003302 11566460705 020777 0 ustar menesis menesis 0000000 0000000 ##############################################################################
#
# 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.
"""
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.exception-3.6.3/setup.cfg 0000644 0001771 0002004 00000000073 11566460715 020234 0 ustar menesis menesis 0000000 0000000 [egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
zope.app.exception-3.6.3/src/ 0000755 0001771 0002004 00000000000 11566460715 017202 5 ustar menesis menesis 0000000 0000000 zope.app.exception-3.6.3/src/zope.app.exception.egg-info/ 0000755 0001771 0002004 00000000000 11566460715 024425 5 ustar menesis menesis 0000000 0000000 zope.app.exception-3.6.3/src/zope.app.exception.egg-info/PKG-INFO 0000644 0001771 0002004 00000010022 11566460714 025514 0 ustar menesis menesis 0000000 0000000 Metadata-Version: 1.0
Name: zope.app.exception
Version: 3.6.3
Summary: Zope 3 exception views
Home-page: http://pypi.python.org/pypi/zope.app.exception
Author: Zope Corporation and Contributors
Author-email: zope-dev@zope.org
License: ZPL 2.1
Description: This packages provides Zope 3 browser views for some generic exceptions.
.. contents::
System Errors
=============
System Errors are errors representing a system failure. At the
application level, they are errors that are uncaught by the
application and that a developer hasn't provided a custom error view
for.
Zope provides a default system error view that prints an obnoxius
terse message and that sets the response status.
There is a simple view registered in ``ftesting.zcml`` which raises
``Exception()``:
>>> print http(r"""
... GET /error.html HTTP/1.1
... """)
HTTP/1.1 500 Internal Server Error
...
A system error occurred.
...
Another way of getting a system error is the occurrence of a system
error, such as ``ComponentLookupError``. I have registered a simple
view in ``ftesting.zcml``, too, that will raise a component lookup
error. So if we call ``componentlookuperror.html``, we should get the
error message:
>>> print http(r"""
... GET /componentlookuperror.html HTTP/1.1
... """)
HTTP/1.1 500 Internal Server Error
...
A system error occurred.
...
CHANGES
=======
3.6.3 (2011-05-23)
------------------
- Replaced an undeclared test dependency on ``zope.app.authentication`` with
``zope.password``.
3.6.2 (2010-09-14)
------------------
- No longer depend on ``zope.app.zptpage`` for tests.
- Replaced dependency on ``zope.app.securitypolicy`` by
``zope.securitypolicy``.
3.6.1 (2010-01-08)
------------------
- Require zope.browserpage which now contains ``namedtemplate``.
- Fix ftesting.zcml due to ``zope.securitypolicy`` update.
- Fix tests using a newer zope.publisher that requires zope.login.
3.6.0 (2009-05-18)
------------------
- ``ISystemErrorView`` interface has been moved to
``zope.browser.interfaces``, leaving BBB import here.
- Cut dependency on ``zope.formlib`` by requiring newer version of
``zope.app.pagetemplate`` which now contains ``namedtemplate``.
3.5.0 (2009-04-06)
------------------
- Use new ``zope.authentication`` instead of ``zope.app.security``.
- Removed deprecated code and thus removed dependency on zope.deferredimport.
- Removed old zpkg-related SETUP.cfg file.
3.4.2 (2009-01-27)
------------------
- Substitute zope.app.zapi by direct calls to its wrapped apis. See
bug 219302.
- Fixed author email and home page.
3.4.1 (2007-10-31)
------------------
- Resolve ``ZopeSecurityPolicy`` deprecation warning.
3.4.0 (2007-10-24)
------------------
- Initial release independent of the main Zope tree.
Keywords: zope3 exception view
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.exception-3.6.3/src/zope.app.exception.egg-info/top_level.txt 0000644 0001771 0002004 00000000005 11566460714 027151 0 ustar menesis menesis 0000000 0000000 zope
zope.app.exception-3.6.3/src/zope.app.exception.egg-info/SOURCES.txt 0000644 0001771 0002004 00000002325 11566460714 026312 0 ustar menesis menesis 0000000 0000000 CHANGES.txt
COPYRIGHT.txt
LICENSE.txt
README.txt
bootstrap.py
buildout.cfg
setup.py
src/zope/__init__.py
src/zope.app.exception.egg-info/PKG-INFO
src/zope.app.exception.egg-info/SOURCES.txt
src/zope.app.exception.egg-info/dependency_links.txt
src/zope.app.exception.egg-info/namespace_packages.txt
src/zope.app.exception.egg-info/not-zip-safe
src/zope.app.exception.egg-info/requires.txt
src/zope.app.exception.egg-info/top_level.txt
src/zope/app/__init__.py
src/zope/app/exception/__init__.py
src/zope/app/exception/ftesting.zcml
src/zope/app/exception/interfaces.py
src/zope/app/exception/systemerror.py
src/zope/app/exception/testing.py
src/zope/app/exception/browser/__init__.py
src/zope/app/exception/browser/configure.zcml
src/zope/app/exception/browser/notfound.pt
src/zope/app/exception/browser/notfound.py
src/zope/app/exception/browser/systemerror.pt
src/zope/app/exception/browser/systemerror.txt
src/zope/app/exception/browser/unauthorized.pt
src/zope/app/exception/browser/unauthorized.py
src/zope/app/exception/browser/user.pt
src/zope/app/exception/browser/user.py
src/zope/app/exception/browser/tests/__init__.py
src/zope/app/exception/browser/tests/test_error.py
src/zope/app/exception/browser/tests/test_unauthorized.py zope.app.exception-3.6.3/src/zope.app.exception.egg-info/namespace_packages.txt 0000644 0001771 0002004 00000000016 11566460714 030754 0 ustar menesis menesis 0000000 0000000 zope
zope.app
zope.app.exception-3.6.3/src/zope.app.exception.egg-info/not-zip-safe 0000644 0001771 0002004 00000000001 11566460706 026653 0 ustar menesis menesis 0000000 0000000
zope.app.exception-3.6.3/src/zope.app.exception.egg-info/dependency_links.txt 0000644 0001771 0002004 00000000001 11566460714 030472 0 ustar menesis menesis 0000000 0000000
zope.app.exception-3.6.3/src/zope.app.exception.egg-info/requires.txt 0000644 0001771 0002004 00000000345 11566460714 027026 0 ustar menesis menesis 0000000 0000000 setuptools
zope.interface
zope.publisher >= 3.12
zope.authentication
zope.browser>=1.2
zope.browserpage>=3.11.0
zope.component
zope.security
[test]
zope.app.testing
zope.app.zcmlfiles
zope.login
zope.password
zope.securitypolicy zope.app.exception-3.6.3/src/zope/ 0000755 0001771 0002004 00000000000 11566460715 020157 5 ustar menesis menesis 0000000 0000000 zope.app.exception-3.6.3/src/zope/__init__.py 0000644 0001771 0002004 00000000311 11566460705 022262 0 ustar menesis menesis 0000000 0000000 # 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.exception-3.6.3/src/zope/app/ 0000755 0001771 0002004 00000000000 11566460715 020737 5 ustar menesis menesis 0000000 0000000 zope.app.exception-3.6.3/src/zope/app/__init__.py 0000644 0001771 0002004 00000000311 11566460705 023042 0 ustar menesis menesis 0000000 0000000 # 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.exception-3.6.3/src/zope/app/exception/ 0000755 0001771 0002004 00000000000 11566460715 022735 5 ustar menesis menesis 0000000 0000000 zope.app.exception-3.6.3/src/zope/app/exception/testing.py 0000644 0001771 0002004 00000001630 11566460705 024763 0 ustar menesis menesis 0000000 0000000 ##############################################################################
#
# Copyright (c) 2007 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.
#
##############################################################################
"""zope.app.exception common test related classes/functions/objects."""
import os
from zope.app.testing.functional import ZCMLLayer
AppExceptionLayer = ZCMLLayer(
os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
__name__, 'AppExceptionLayer', allow_teardown=True)
zope.app.exception-3.6.3/src/zope/app/exception/systemerror.py 0000644 0001771 0002004 00000001542 11566460705 025706 0 ustar menesis menesis 0000000 0000000 ##############################################################################
#
# Copyright (c) 2004 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.
#
##############################################################################
"""System error indicator"""
import zope.interface
import zope.browser.interfaces
class SystemErrorView:
zope.interface.implements(zope.browser.interfaces.ISystemErrorView)
def isSystemError(self):
return True
zope.app.exception-3.6.3/src/zope/app/exception/__init__.py 0000644 0001771 0002004 00000000017 11566460705 025043 0 ustar menesis menesis 0000000 0000000 # Import this!
zope.app.exception-3.6.3/src/zope/app/exception/interfaces.py 0000644 0001771 0002004 00000001315 11566460705 025431 0 ustar menesis menesis 0000000 0000000 ##############################################################################
# Copyright (c) 2003 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.
##############################################################################
"""General exceptions"""
# BBB
from zope.browser.interfaces import ISystemErrorView
zope.app.exception-3.6.3/src/zope/app/exception/ftesting.zcml 0000644 0001771 0002004 00000003241 11566460705 025446 0 ustar menesis menesis 0000000 0000000
You are not authorized