[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser/tests - testGlobalBrowserMenuServiceDirectives.py:1.4

Jim Fulton jim@zope.com
Tue, 1 Oct 2002 08:49:40 -0400


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

Modified Files:
	testGlobalBrowserMenuServiceDirectives.py 
Log Message:
Added a new view, 'SelectedManagementView', that redirects to the first
view that a user can access. Changed between-object navigation urls,
like those in breadcrumbs and the contents management view, to use
this view.  This corresponds to Zope 2's 'manage_workspace' method.

Changes the name of the folder contents management view to
'contents.html'. Added a new 'index.html' view as the default view for
folders. If the folder contains an object named 'index.html', then the
view redirects to that object. Otherwise, the view displays a folder
listing with linds to folder items.

Changed the view order for a number of content types so that
management views come before the default view.  This means you can now
traverse to a file or page template from a contents listing and get an
editing view.



=== Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuServiceDirectives.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuServiceDirectives.py:1.3	Wed Jul 17 12:54:19 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuServiceDirectives.py	Tue Oct  1 08:49:08 2002
@@ -99,6 +99,10 @@
         
         self.assertEqual(list(menu), [d(5), d(6), d(3), d(2), d(1)])
 
+        first = globalBrowserMenuService.getFirstMenuItem(
+            'test_id', X(), TestRequest())
+
+        self.assertEqual(first, d(5))
 
 def test_suite():
     return makeSuite(Test)