[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZMI/Browser - ManagementViewSelector.py:1.2
Jim Fulton
jim@zope.com
Thu, 3 Oct 2002 08:25:14 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/Browser
In directory cvs.zope.org:/tmp/cvs-serv6708
Modified Files:
ManagementViewSelector.py
Log Message:
Changed to redirect to "." when no accessable menu entry can be found.
This is important for objects that don't bother to define a management
view menu.
=== Zope3/lib/python/Zope/App/ZMI/Browser/ManagementViewSelector.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/ZMI/Browser/ManagementViewSelector.py:1.1 Tue Oct 1 08:58:03 2002
+++ Zope3/lib/python/Zope/App/ZMI/Browser/ManagementViewSelector.py Thu Oct 3 08:25:14 2002
@@ -41,7 +41,9 @@
request.response.redirect(item['action'])
return ''
- raise Unauthorized()
+ request.response.redirect('.') # Redirect to content/
+
+
__doc__ = ManagementViewSelector.__doc__ + __doc__