[Zope3-checkins] CVS: Zope3/src/zope/app/zptpage/tests - test_zptpage.py:1.9

Jim Fulton jim at zope.com
Sun Apr 18 12:00:37 EDT 2004


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

Modified Files:
	test_zptpage.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/zptpage/tests/test_zptpage.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/zptpage/tests/test_zptpage.py:1.8	Fri Mar 19 15:26:38 2004
+++ Zope3/src/zope/app/zptpage/tests/test_zptpage.py	Sun Apr 18 12:00:35 2004
@@ -117,9 +117,8 @@
                     return 'None'
                 return name
 
-        from zope.app.traversing.namespace import provideNamespaceHandler
         from zope.app.traversing.namespace import view
-        provideNamespaceHandler('view', view)
+        ztapi.provideNamespaceHandler('view', view)
         ztapi.browserView(IZPTPage, 'name', AU)
 
         page = ZPTPage()




More information about the Zope3-Checkins mailing list