[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - configure.zcml:1.9 namespace.py:1.14

Albertas Agejevas alga@codeworks.lt
Wed, 2 Jul 2003 07:00:17 -0400


Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv18945

Modified Files:
	configure.zcml namespace.py 
Log Message:
Tossed the broken and insecure ++module++ namespace.


=== Zope3/src/zope/app/traversing/configure.zcml 1.8 => 1.9 ===
--- Zope3/src/zope/app/traversing/configure.zcml:1.8	Fri Jun 13 13:41:20 2003
+++ Zope3/src/zope/app/traversing/configure.zcml	Wed Jul  2 07:00:16 2003
@@ -53,10 +53,6 @@
     handler="zope.app.traversing.namespace.skin"
     />
 <traversalNamespace
-    name="module"
-    handler="zope.app.traversing.namespace.module"
-    />
-<traversalNamespace
     name="help"
     handler="zope.app.traversing.namespace.help"
     />


=== Zope3/src/zope/app/traversing/namespace.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/traversing/namespace.py:1.13	Sun Jun  1 11:59:37 2003
+++ Zope3/src/zope/app/traversing/namespace.py	Wed Jul  2 07:00:16 2003
@@ -199,16 +199,6 @@
 
     return method()
 
-def module(name, parameters, pname, ob, request):
-    """Used to traverse to a module (in dot notation)"""
-    servicemanager = getServiceManager(ob)
-    adapter = getAdapter(servicemanager, IModuleService)
-    if adapter is not None:
-        ob = adapter.resolve(name)
-    if queryDefaultViewName(ob, request) is None:
-        return Interface
-    return ob
-
 def help(name, parameters, pname, ob, request):
     """Used to traverse to an online help topic."""
     return getService(ob, 'OnlineHelp')