Well, I know they have a cool name. But thats about it. I have a problem that involves returning some data from a zCatalog, and some data from a Postgres database. Both items are treated as equivalent and should be displayed alphabetically side by side. 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. A search of Zope.org, and the list archives, comes up empty. Anyone with tips or resources? Edward
On Tue, May 27, 2003 at 11:16:20AM -0600, Edward Pollard wrote:
Well, I know they have a cool name. But thats about it.
I have a problem that involves returning some data from a zCatalog, and some data from a Postgres database. Both items are treated as equivalent and should be displayed alphabetically side by side.
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.
You might consider actually cataloging the SQL data instead: http://www.zope.org/Members/rbickers/cataloganything -- Paul Winkler http://www.slinkp.com
Hello
A search of Zope.org, and the list archives, comes up empty. Anyone with tips or resources?
Two links: The ZopeBook 2.6: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/RelationalDataba ses.stx search for brains. In ZopeLabs: http://www.zopelabs.com/cookbook/991544280 Regards Dieter
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.
participants (4)
-
Dieter Fischer -
Edward Pollard -
Lennart Regebro -
Paul Winkler