[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_configurationstatusproperty.py:1.9
Guido van Rossum
guido@python.org
Thu, 19 Jun 2003 17:56:17 -0400
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv17984/zope/app/services/tests
Modified Files:
test_configurationstatusproperty.py
Log Message:
Add a simple string attribute (typically a class variable)
'serviceType' to the IConfiguration interface, so that the bundle code
can legally get at this information, which it needs to call that
service's queryConfigurationsFor() method. Remove this info from the
ConfigurationStatusProperty class and constructor signature; this
class now gets this info from its configuration argument.
=== Zope3/src/zope/app/services/tests/test_configurationstatusproperty.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/services/tests/test_configurationstatusproperty.py:1.8 Sat Jun 7 01:32:01 2003
+++ Zope3/src/zope/app/services/tests/test_configurationstatusproperty.py Thu Jun 19 17:55:46 2003
@@ -34,14 +34,17 @@
class TestingConfiguration(TestingConfiguration):
- status = ConfigurationStatusProperty("Services")
+ serviceType = "Services"
+ status = ConfigurationStatusProperty()
service_type = "Test"
class PassiveConfiguration(TestingConfiguration):
- status = ConfigurationStatusProperty("NoSuchService")
+ serviceType = "NoSuchService"
+ status = ConfigurationStatusProperty()
class UtilityConfiguration(TestingConfiguration):
- status = ConfigurationStatusProperty("Utilities")
+ serviceType = "Utilities"
+ status = ConfigurationStatusProperty()
class TestingConfigurationRegistry(TestingConfigurationRegistry):
class_ = TestingConfiguration