[Zope3-checkins] CVS: Zope3/src/zope/app/presentation/tests - test_presentation.py:1.14

Jim Fulton jim at zope.com
Sun Apr 18 12:01:02 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/presentation/tests
In directory cvs.zope.org:/tmp/cvs-serv12900/src/zope/app/presentation/tests

Modified Files:
	test_presentation.py 
Log Message:
Changed way namespace handlers (handlers for traversing names of the
form "++namespace++name") are registered.  Now the are registered as
views and adapters.  When traversing a namespace-qualified view, a
request is sometimes provided.  When a request is provided, a view
will be used to traverse the name. Otherwise, an adapter is used.
handlers that don't care about the request are registered as both an
adapter and a view.

With this change, it's not possible to have content-specific
namespace-specific traversers.  Content objects can now define
specialized namespaces.


=== Zope3/src/zope/app/presentation/tests/test_presentation.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/presentation/tests/test_presentation.py:1.13	Sat Apr 17 10:33:13 2004
+++ Zope3/src/zope/app/presentation/tests/test_presentation.py	Sun Apr 18 12:00:31 2004
@@ -310,7 +310,10 @@
                "'Interface', 'absolute_url', 'SiteAbsoluteURL', '')",
              "zope.component.presentation.PresentationRegistration("
                "default, (None, 'IBrowserRequest'), 'Interface', "
-               "'absolute_url', 'AbsoluteURL', '')"
+               "'absolute_url', 'AbsoluteURL', '')",
+             "zope.component.presentation.PresentationRegistration("
+               "default, (None, 'Interface'), "
+               "'ITraversable', 'etc', 'etc', '')",
              ]
             )
 




More information about the Zope3-Checkins mailing list