[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - folder.py:1.3
Jim Fulton
jim@zope.com
Sun, 23 Mar 2003 13:04:57 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv12947/src/zope/app/interfaces/services
Modified Files:
folder.py
Log Message:
Added code to prevent deleting the last configuration manager from a site-management folder
=== Zope3/src/zope/app/interfaces/services/folder.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/services/folder.py:1.2 Sun Mar 23 12:13:42 2003
+++ Zope3/src/zope/app/interfaces/services/folder.py Sun Mar 23 13:04:26 2003
@@ -18,6 +18,23 @@
from zope.app.interfaces.container import IAdding, IContainer
from zope.app.interfaces.services.service import IComponentManager
+from zope.interface import Interface
+
+class INoConfigurationManagerError(Interface):
+ """No configuration manager error
+ """
+
+
+class NoConfigurationManagerError(Exception):
+ """No configuration manager
+
+ There is no configuration manager in a site-management folder, or
+ an operation would result in no configuration manager in a
+ site-management folder.
+
+ """
+
+ __implements__ = INoConfigurationManagerError
class ISiteManagementFolder(IContainer):
"""Component and component configuration containers."""