[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms/tests - testUtility.py:1.5
Holger Krekel
hpk@devel.trillke.net
Thu, 5 Dec 2002 08:27:36 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms/tests
In directory cvs.zope.org:/tmp/cvs-serv27419/lib/python/Zope/App/Forms/tests
Modified Files:
testUtility.py
Log Message:
- refactored/renamed the fields in IField.py interfaces
together with Martijn Faassen to have expressive and
consistent names.
- please note that now the 'required' field defaults
to true. you have to explicitly state that you
want a Field to be optional (i.e. non-required).
- improved the docstrings
- modified the unittests to reflect the new situation
=== Zope3/lib/python/Zope/App/Forms/tests/testUtility.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/Forms/tests/testUtility.py:1.4 Mon Nov 11 15:52:57 2002
+++ Zope3/lib/python/Zope/App/Forms/tests/testUtility.py Thu Dec 5 08:27:05 2002
@@ -21,7 +21,6 @@
from unittest import TestCase, TestSuite, main, makeSuite
from Zope.App.tests.PlacelessSetup import PlacelessSetup
from Zope.Publisher.Browser.BrowserView import BrowserView
-from Zope.Publisher.Browser.BrowserView import BrowserView
from Zope.Publisher.Browser.BrowserRequest import TestRequest
from Zope.Publisher.Browser.IBrowserPresentation import IBrowserPresentation
from Interface import Interface
@@ -39,9 +38,9 @@
class I(Interface):
- title = Text(title=u"Title")
+ title = Text(title=u"Title", required = False)
description = Text(title=u"Description",
- default = u'No description')
+ default = u'No description', required = False)
class I2(Interface):
title = Text(title = u"Title", required = True)