[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms - Exceptions.py:1.4.4.1 Utility.py:1.5.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
In directory cvs.zope.org:/tmp/cvs-serv30047/lib/python/Zope/App/Forms

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	Exceptions.py Utility.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/Exceptions.py 1.4 => 1.4.4.1 ===
--- Zope3/lib/python/Zope/App/Forms/Exceptions.py:1.4	Mon Nov 11 15:26:26 2002
+++ Zope3/lib/python/Zope/App/Forms/Exceptions.py	Sat Nov 30 07:44:24 2002
@@ -58,7 +58,10 @@
         return self.args[i]
 
     def __str__(self):
-        return "\n".join(map(str, self.args))
+        return "\n".join(
+            ["%s: %s" % (error.__class__.__name__, error)
+             for error in self.args]
+            )
 
     __repr__ = __str__
 


=== Zope3/lib/python/Zope/App/Forms/Utility.py 1.5 => 1.5.4.1 ===
--- Zope3/lib/python/Zope/App/Forms/Utility.py:1.5	Mon Nov 11 15:52:57 2002
+++ Zope3/lib/python/Zope/App/Forms/Utility.py	Sat Nov 30 07:44:24 2002
@@ -39,7 +39,7 @@
 from Zope.App.Forms.IWidget import IWidget
 from Zope.App.Forms.Exceptions import WidgetsError, MissingInputError
 from Zope.ComponentArchitecture.IView import IViewFactory
-
+from Zope.Exceptions import Forbidden, Unauthorized
 
 def setUpWidget(view, name, field, value=None, prefix=None, force=0):
     """Set up a single view widget