[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/tests - test_addservicecontainer.py:1.3.6.1

Tim Peters tim.one@comcast.net
Tue, 25 Feb 2003 16:28:25 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/services/tests
In directory cvs.zope.org:/tmp/cvs-serv10218/src/zope/app/browser/services/tests

Modified Files:
      Tag: use-config-branch
	test_addservicecontainer.py 
Log Message:
When you add a service, you're now automatically taken to its
configuration page (instead of needing to plow thru several other
pages first, finding the same service repeatedly).  This doesn't
feel squeaky clean (to Tim), but appears to have the virtue of
working.

Also taught such unit tests as proved to need it about
IAttributeUseConfigurable, and yesterday's UseConfiguration adapter.


=== Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py 1.3 => 1.3.6.1 ===
--- Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py:1.3	Sat Dec 28 12:49:24 2002
+++ Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py	Tue Feb 25 16:27:54 2003
@@ -55,8 +55,10 @@
 from zope.schema.interfaces import IField, ITextLine, IText
 from zope.app.browser.form.widget import TextWidget, TextAreaWidget
 
+from zope.app.interfaces.services.configuration import IAttributeUseConfigurable
+
 class I1(Interface): pass
-class C: __implements__ = IAttributeAnnotatable, I1
+class C: __implements__ = IAttributeUseConfigurable, I1
 
 class Test(PlacefulSetup, TestCase):