[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - configuration.py:1.5
Jim Fulton
jim@zope.com
Fri, 7 Mar 2003 11:45:21 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv27691/zope/app/interfaces/services
Modified Files:
configuration.py
Log Message:
Removed title and description from configuration schema.
Instead, made configuration objects annotatable so that they can
have title and description as meta data.
=== Zope3/src/zope/app/interfaces/services/configuration.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/interfaces/services/configuration.py:1.4 Mon Mar 3 18:16:10 2003
+++ Zope3/src/zope/app/interfaces/services/configuration.py Fri Mar 7 11:44:48 2003
@@ -35,17 +35,7 @@
__implements__ = IConfigurationStatus
allowed_values = Unregistered, Registered, Active
-class IConfigurationSummary(Interface):
- """Configuration summary data
- """
-
- title = TextLine(title = u"Title",
- description = u"Descriptive title",
- required = True)
-
- status = ConfigurationStatus(title = u"Configuration status")
-
-class IConfiguration(IConfigurationSummary):
+class IConfiguration(Interface):
"""Configuration object
A configuration object represents a specific configuration
@@ -59,9 +49,7 @@
interface.
"""
- description = Text(title=u"Description",
- description=u"Detailed description",
- )
+ status = ConfigurationStatus(title = u"Configuration status")
def activated():
"""Method called when a configuration is made active