[Zope-CMF] meta_type, Type searching

Chris Withers chrisw@nipltd.com
Mon, 4 Jun 2001 21:25:09 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0D43_01C0ED3C.D52A8C50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> Thanks for pointing this out!  I've just checked in a change which makes
> the search form use the 'Type' index, rather than 'meta_type';  Events
> surfaced the bug because their meta_type is different than their "portal"
> type (images and files would also have broken, I think).

...and here's the patch to make the Catalog Tool add a Type index when
creating new portals ;-)

(You'll have to add them manually to any portals that exist already)

Of course, I might well be missing something :-S

cheers,

Chris


------=_NextPart_000_0D43_01C0ED3C.D52A8C50
Content-Type: application/octet-stream;
	name="CatalogTool.py.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="CatalogTool.py.patch"

--- CatalogTool.py.original	Thu May 17 14:57:52 2001
+++ CatalogTool.py	Mon Jun 04 21:22:14 2001
@@ -166,6 +166,7 @@
         self._catalog.addIndex('effective', 'FieldIndex')
         self._catalog.addIndex('expires', 'FieldIndex')
         self._catalog.addIndex('modified', 'FieldIndex')
+        self._catalog.addIndex('Type', 'FieldIndex')
         # Catalog meta-data
         self._catalog.addColumn('Subject')
         self._catalog.addColumn('Title')

------=_NextPart_000_0D43_01C0ED3C.D52A8C50--