[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration - Exceptions.py:1.1.2.1 xmlconfig.py:1.1.2.15.8.2
Jim Fulton
jim@zope.com
Thu, 30 May 2002 14:27:30 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Configuration
In directory cvs.zope.org:/tmp/cvs-serv20275/lib/python/Zope/Configuration
Modified Files:
Tag: Zope3InWonderland-branch
xmlconfig.py
Added Files:
Tag: Zope3InWonderland-branch
Exceptions.py
Log Message:
Implemented browser:page directives for browser:view, browser:resource.
Implemented security assertions in view and resource directives.
Changed defaultView so you can omit a factory, which just sets the
default view name without defining a view.
Moved Browser and ComponentArchitecture directive support to App,
because of all of the dependencies on other packages.
=== Added File Zope3/lib/python/Zope/Configuration/Exceptions.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""Standard configuration errors
"""
class ConfigurationError(Exception):
"""There was an error in a configuration
"""
=== Zope3/lib/python/Zope/Configuration/xmlconfig.py 1.1.2.15.8.1 => 1.1.2.15.8.2 ===
import sys, os
from types import StringType
+from Exceptions import ConfigurationError
-class ZopeXMLConfigurationError(Exception):
+class ZopeXMLConfigurationError(ConfigurationError):
"Zope XML Configuration error"
def __init__(self, locator, mess):