[CMF-checkins] CVS: CMF/CMFCore - CMFCoreExceptions.py:1.1.2.1 __init__.py:1.23.24.1

Yvo Schubbe schubbe at web.de
Sat Sep 20 07:37:16 EDT 2003


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv19995/CMFCore

Modified Files:
      Tag: yuppie-deleteMembers-branch
	__init__.py 
Added Files:
      Tag: yuppie-deleteMembers-branch
	CMFCoreExceptions.py 
Log Message:
added CMFCoreExceptions.py and made it accessible for TTW code
(I'll not merge this into HEAD without further discussion on Zope-CMF)

=== Added File CMF/CMFCore/CMFCoreExceptions.py ===
##############################################################################
#
# Copyright (c) 2003 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
#
##############################################################################
""" Declare Exceptions used throughout the CMF.

$Id: CMFCoreExceptions.py,v 1.1.2.1 2003/09/20 11:37:15 yuppie Exp $
"""

from AccessControl import allow_class
from AccessControl import Unauthorized


class CMFError(Exception):
    """ The root of all CMF evil.
    """

allow_class(CMFError)


class CMFNotImplementedError(NotImplementedError, CMFError):
    """ NotImplementedError in CMF.
    """

allow_class(CMFNotImplementedError)


class CMFUnauthorizedError(Unauthorized, CMFError):
    """ Unauthorized error in CMF.
    """

allow_class(CMFUnauthorizedError)


=== CMF/CMFCore/__init__.py 1.23 => 1.23.24.1 ===
--- CMF/CMFCore/__init__.py:1.23	Thu Feb 13 03:31:01 2003
+++ CMF/CMFCore/__init__.py	Sat Sep 20 07:37:15 2003
@@ -15,6 +15,8 @@
 $Id$
 """
 
+from AccessControl import allow_module
+
 import PortalObject, PortalContent, PortalFolder
 import MembershipTool, WorkflowTool, CatalogTool, DiscussionTool
 import ActionsTool, UndoTool, RegistrationTool, SkinsTool
@@ -29,6 +31,9 @@
 import utils
 
 from CMFCorePermissions import AddPortalFolders
+
+
+allow_module('Products.CMFCore.CMFCoreExceptions')
 
 try:
     import FSPageTemplate




More information about the CMF-checkins mailing list