[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZMI/Browser - ManagementViewSelector.py:1.4

Steve Alexander steve@cat-box.net
Mon, 21 Oct 2002 11:51:20 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/Browser
In directory cvs.zope.org:/tmp/cvs-serv10963

Modified Files:
	ManagementViewSelector.py 
Log Message:
Made __call__ consistently return a unicode, rather than returning
either a unicode or None.
We need to think about what the rules are about what kind of thing
needs to be returned after calling request.response.redirect(...).



=== Zope3/lib/python/Zope/App/ZMI/Browser/ManagementViewSelector.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/ZMI/Browser/ManagementViewSelector.py:1.3	Mon Oct 21 10:13:36 2002
+++ Zope3/lib/python/Zope/App/ZMI/Browser/ManagementViewSelector.py	Mon Oct 21 11:51:20 2002
@@ -38,10 +38,10 @@
             'zmi_views', context, request)
         if item:
             request.response.redirect(item['action'])
-            return ''
+            return u''
 
         request.response.redirect('.') # Redirect to content/
-        
+        return u''
         
 
 __doc__ = ManagementViewSelector.__doc__ + __doc__