[Zope-dev] ZCatalog: path & summary indices not generated

Casey Duncan c.duncan@nlada.org
Wed, 3 Oct 2001 08:59:45 -0400


On Wednesday 03 October 2001 12:54 am, Shane Rowatt allegedly wrote:
> Zope Version: 2.4.1 on linux.
>
> When I tried to add a ZCatalog followed by finding objects to index using
> the default indices provided (path, summary, id, title etc), the 'path' and
> 'summary' indices are never generated. The 'summary' index is always an
> empty string and the 'path' index is 'None'.

Summary is not defined (as you found) for most plain objects. CatalogAware 
defines it, but unfortunately without stripping tags. You might check out my 
DTMLDocumentExt code which renders the document and strips the html tags. It 
is an extension of some code Dieter posted online a while back. You can find 
it at:

http://www.zope.org/Members/Kaivo/DTMLDocumentExt

[snip]
>
> Surely someone else has come across these problems before using this basic
> catalog stuff??

Yup 8^)

>
> Shane Rowatt
> Astracon Inc.

hth
/---------------------------------------------------\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  c.duncan@nlada.org
\---------------------------------------------------/