[CMF-checkins] CVS: CMF - CatalogTool.py:1.6
tseaver@digicool.com
tseaver@digicool.com
Mon, 26 Mar 2001 17:54:24 -0500 (EST)
Update of /cvs-repository/CMF/CMFCore
In directory korak:/tmp/cvs-serv5703/CMFCore
Modified Files:
CatalogTool.py
Log Message:
* Ensure that content metatypes show up in the types list of the
portal_catalog tool (Tracker issue #209, thanks to Jeff
Sasmor).
--- Updated File CatalogTool.py in package CMF --
--- CatalogTool.py 2001/03/02 20:51:55 1.5
+++ CatalogTool.py 2001/03/26 22:54:24 1.6
@@ -89,9 +89,11 @@
__version__='$Revision$'[11:-2]
+import os
from utils import UniqueObject, _checkPermission, _getAuthenticatedUser
+from utils import getToolByName
from Products.ZCatalog.ZCatalog import ZCatalog
-from Globals import InitializeClass
+from Globals import InitializeClass, package_home, DTMLFile
import urllib
from DateTime import DateTime
from string import join
@@ -100,6 +102,8 @@
from utils import mergedLocalRoles
import CMFCorePermissions
+_dtmldir = os.path.join( package_home( globals() ), 'dtml' )
+
class IndexableObjectWrapper:
def __init__(self, vars, ob):
@@ -199,6 +203,8 @@
def __url(self, ob):
return join(ob.getPhysicalPath(), '/')
+
+ manage_catalogFind = DTMLFile( 'catalogFind', _dtmldir )
def catalog_object(self, object, uid):
# Wraps the object with workflow and accessibility