[Checkins] SVN: z3c.traverser/trunk/src/z3c/traverser/stackinfo/traversing.py Another extension to the virtual host thing.

Jürgen Kartnaller juergen at kartnaller.at
Sun Oct 15 09:31:32 EDT 2006


Log message for revision 70646:
  Another extension to the virtual host thing.
  

Changed:
  U   z3c.traverser/trunk/src/z3c/traverser/stackinfo/traversing.py

-=-
Modified: z3c.traverser/trunk/src/z3c/traverser/stackinfo/traversing.py
===================================================================
--- z3c.traverser/trunk/src/z3c/traverser/stackinfo/traversing.py	2006-10-15 13:27:39 UTC (rev 70645)
+++ z3c.traverser/trunk/src/z3c/traverser/stackinfo/traversing.py	2006-10-15 13:31:31 UTC (rev 70646)
@@ -69,7 +69,10 @@
     from zope.traversing import api
     from zope.traversing.interfaces import IContainmentRoot
     name = api.getName(context)
-    items = name and [name] or []
+    if context == request.getVirtualHostRoot():
+        items = []
+    else:
+        items = name and [name] or []
     for obj, names in consumed:
         if obj == context:
             items.extend(names)



More information about the Checkins mailing list