[Zope] ZCatalog, SQL database and PDF files

Martijn Pieters mj@antraciet.nl
Fri, 10 Sep 1999 10:45:03 +0200


At 09:43 10/09/99 , Kam Cheung wrote:
>I just installed Zope2, and it's so great. ZCatalog almost does what I need
>to do in my current project. However, there's one thing that it couldn't do
>(or at least I don't know how it can be done) -- can ZCatalog be used to
>search a SQL database in addition to other objects in the Zope ODB? How
>about external files like PDF file?
>
>Python, SQL, Zope and even programming in general are all very new to me (I
>am a designer, not a programmer), so if someone knows how it can be done,
>please explain it in an easy to understand way (examples are the best!!!)

ZCatalog can index any object in the Zope ODB. So, for external data, 
you'll need some kind of object that'll model that external data, i.e. 
define methods that return that data you want to have indexed and/or 
included in the Catalog.

I don't think this has to be an object for every item you need to catalog, 
I am pretty sure you can do with only one object for every type of item. 
But I haven't done this kind of thing yet.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------