[Zope] Pluggable Brains - Huh?

Lennart Regebro lennart@regebro.nu
Wed, 28 May 2003 11:16:12 +0200


Edward Pollard wrote:
> I've got a marvelously kludgerific solution that involves copying the 
> search results from the zCatalog into a list, which I can then insert my 
> SQL based results in and sort as I see fit. I don't know if there is a 
> better way, but I'd like to know more about Pluggable Brains so I can 
> determine if there is.

It was some time since I did anything with it, but I think it's quite 
straightforward. You creat your Brain class by subclassing the base, and 
then tell the search (or do you tell the catalog? Don't remember) to 
return lists of these brains instead.