Philipp Dunkel writes:
 > I'd like to use it for my Products, but I don't have the time now to port
 > everything to the new zope version.
 > Is it possible to only use the new catalog and which files do I have to
 > change/update ?
It is possible.

You would use the folder "SearchIndex" from Zope 2.2
and the attached patch.


Dieter

.....................................................................
diff -u ../ZopeCVS/lib/python/Products/ZCatalog/Vocabulary.py 
lib/python/Products/ZCatalog/Vocabulary.py
--- ../ZopeCVS/lib/python/Products/ZCatalog/Vocabulary.py       Sat Aug 19 15:56:53 
2000
+++ lib/python/Products/ZCatalog/Vocabulary.py  Sat Aug 19 15:58:13 2000
@@ -128,7 +128,7 @@
          'help': ('ZCatalog', 'Vocabulary_Query.stx')},
         )
         +Item.manage_options
-        +AccessControl.Role.RoleManager.manage_options
+        #+AccessControl.Role.RoleManager.manage_options
         )
 
     __ac_permissions__=(
diff -u ../ZopeCVS/lib/python/Products/ZCatalog/ZCatalog.py 
lib/python/Products/ZCatalog/ZCatalog.py
--- ../ZopeCVS/lib/python/Products/ZCatalog/ZCatalog.py Sat Aug 19 15:56:42 2000
+++ lib/python/Products/ZCatalog/ZCatalog.py    Sat Aug 19 15:58:48 2000
@@ -101,7 +101,7 @@
 from SearchIndex import UnIndex, UnTextIndex
 from Vocabulary import Vocabulary
 import IOBTree
-from AccessControl import getSecurityManager
+#from AccessControl import getSecurityManager
 
 
 manage_addZCatalogForm=HTMLFile('addZCatalog',globals())
@@ -614,9 +614,9 @@
 
 
 class td(TemplateDict):
-
-    def validate(self, inst, parent, name, value, md):
-        return getSecurityManager().validate(inst, parent, name, value)
+    pass
+    #def validate(self, inst, parent, name, value, md):
+        #return getSecurityManager().validate(inst, parent, name, value)
 
 def expr_match(ob, ed, c=InstanceDict, r=0):
     e, md, push, pop=ed
diff -u ../ZopeCVS/lib/python/Products/ZCatalog/__init__.py 
lib/python/Products/ZCatalog/__init__.py
--- ../ZopeCVS/lib/python/Products/ZCatalog/__init__.py Fri Jun  9 03:22:14 2000
+++ lib/python/Products/ZCatalog/__init__.py    Sun Aug 20 07:42:25 2000
@@ -109,6 +109,6 @@
     context.registerBaseClass(ZCatalog.ZCatalog)
     context.registerBaseClass(CatalogAwareness.CatalogAware)
 
-    context.registerHelp()
-    context.registerHelpTitle('Zope Help')
+    #context.registerHelp()
+    #context.registerHelpTitle('Zope Help')
 
diff -u ../ZopeCVS/lib/python/Products/ZCatalog/addZCatalog.dtml 
lib/python/Products/ZCatalog/addZCatalog.dtml
--- ../ZopeCVS/lib/python/Products/ZCatalog/addZCatalog.dtml    Sat Jul 29 11:24:43 
2000
+++ lib/python/Products/ZCatalog/addZCatalog.dtml       Sun Aug 20 07:51:21 2000
@@ -6,7 +6,10 @@
 <BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
 <H2>Add Catalog</H2>
 
+<dtml-comment>
 <dtml-var "HelpSys.HelpButton('ZCatalog_Add.stx', 'ZCatalog')">
+</dtml-comment>
+
 
 <FORM ACTION="manage_addZCatalog" METHOD="POST">
 <TABLE CELLSPACING="2">

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to