[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms/Browser/tests - testEditView.py:1.1.4.1

Jim Fulton jim@zope.com
Sat, 30 Nov 2002 07:44:55 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv30047/lib/python/Zope/App/Forms/Browser/tests

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	testEditView.py 
Log Message:
Refactored the way TTW component registration is done.  There are now
separate registry objects that abstract the machinery for registering
multiple conflicting configurations and deciding which, if any are
active.  Also provided a new field and widget for the status
information.

Along the way, cleaned up and streamlined placeful testing
infrastructure a bit.

Now checking into branch. Will give file-by-file (or at least more
specific logs) when the changes are merged into the head.


=== Zope3/lib/python/Zope/App/Forms/Browser/tests/testEditView.py 1.1 => 1.1.4.1 ===
--- Zope3/lib/python/Zope/App/Forms/Browser/tests/testEditView.py:1.1	Mon Nov 11 15:29:58 2002
+++ Zope3/lib/python/Zope/App/Forms/Browser/tests/testEditView.py	Sat Nov 30 07:44:24 2002
@@ -24,6 +24,7 @@
 from Zope.ComponentArchitecture.GlobalViewService \
      import provideView, setDefaultViewName
 from Zope.App.Forms.Views.Browser.Widget import TextWidget
+from Zope.App.Forms.Browser.StandardSubmit import Update
 
 class I(Interface):
     foo = TextLine(title=u"Foo")
@@ -113,7 +114,7 @@
         c = C()
         request = TestRequest()
         v = EV(c, request)
-        request.form['save_submit'] = u'Submit'
+        request.form[Update] = ''
         request.form['field.foo'] = u'r foo'
         request.form['field.bar'] = u'r bar'
         request.form['field.baz'] = u'r baz'