[Zope-CMF] How can I pass the Content of a File to the portal_catalog?

Dieter Maurer dieter@handshake.de
Thu, 19 Sep 2002 19:58:00 +0200


Mitja Martini writes:
 > How can I pass the Content of a File to the portal_catalog?
What do you mean with "a File"?

The "str" of a Zope File object returns its content.

Do you already know, how the interface between an object and the
ZCatalog works? If not, read the "ZCatalog" section in

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

One way (also a bad one), would be to define an index "str" in the
ZCatalog.


Dieter