[Zope3-checkins] CVS: Zope3/src/zope/app/tree/browser -
cookie.py:1.6
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Mar 17 16:56:43 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/tree/browser
In directory cvs.zope.org:/tmp/cvs-serv2746/src/zope/app/tree/browser
Modified Files:
cookie.py
Log Message:
Make the static tree item filter use IContainer. This allows us to see all
containerish objects in the tree.
=== Zope3/src/zope/app/tree/browser/cookie.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/tree/browser/cookie.py:1.5 Sat Mar 13 16:03:24 2004
+++ Zope3/src/zope/app/tree/browser/cookie.py Wed Mar 17 16:56:42 2004
@@ -17,6 +17,7 @@
"""
from zope.app import zapi
+from zope.app.container.interfaces import IContainer
from zope.app.folder.interfaces import IFolder
from zope.app.site.interfaces import ISite, ISiteManager
from zope.app.traversing.interfaces import IContainmentRoot
@@ -46,7 +47,7 @@
def folderTree(self, root=None):
"""Cookie tree with only folders (and site managers).
"""
- filter = OnlyInterfacesFilter(IFolder, ISiteManager)
+ filter = OnlyInterfacesFilter(IContainer)
return self.cookieTree(root, filter)
def siteTree(self):
More information about the Zope3-Checkins
mailing list