Problem with Automatic Cataloging Example in ZopeBook
Hi fellow Zopers, I've been running in some problems with Cataloging and went to the ZopeBook to see whats wrong. In trying to work through the examples in Chapter 9, Automatic Cataloging, I found that with the latest and greatest Zope 2.3.2, the Catalog fails to acquire and catalog the properties of my NewsItem. Just to verify that I am not doing something very stupid wrong, I went through the same exercise with an old Zope 2.2.1 I had lying around. No problem there, the Catalog looks as expected. Has anybody else run into this or a similar problem? Is it a bug in the ZOpeBook in ZOpe or in my (unplugged) brain? Any help appreciated, Chris -- Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN
Hi Chris, Hmmm... I haven't tried this, but I'm afraid I believe you. :-( Are you saying that anything that is a property of an instance of a ZClass is not indexed in the catalog? Does this happen with any particular type of ZClass properties or only a certain kind? What if you add a PythonScript (with no parameters) to a ZClass as a method and make it return a string? Does that get indexed? Would you be kind enough to try to make that distinction and report back? - C Christian Wittern wrote:
Hi fellow Zopers,
I've been running in some problems with Cataloging and went to the ZopeBook to see whats wrong. In trying to work through the examples in Chapter 9, Automatic Cataloging, I found that with the latest and greatest Zope 2.3.2, the Catalog fails to acquire and catalog the properties of my NewsItem. Just to verify that I am not doing something very stupid wrong, I went through the same exercise with an old Zope 2.2.1 I had lying around. No problem there, the Catalog looks as expected. Has anybody else run into this or a similar problem? Is it a bug in the ZOpeBook in ZOpe or in my (unplugged) brain?
Any help appreciated,
Chris --
Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Chris McDonough wrote:
Hi Chris,
Hmmm... I haven't tried this, but I'm afraid I believe you. :-( Are you saying that anything that is a property of an instance of a ZClass is not indexed in the catalog? Does this happen with any particular type of ZClass properties or only a certain kind? What if you add a PythonScript (with no parameters) to a ZClass as a method and make it return a string?
I've been running in some problems with Cataloging and went to the ZopeBook to see whats wrong. In trying to work through the examples in Chapter 9, Automatic Cataloging, I found that with the latest and greatest Zope 2.3.2, the Catalog fails to acquire and catalog the properties of my NewsItem. Just to verify that I am not doing something very stupid wrong, I went through the same exercise with an old Zope 2.2.1 I had lying around. No problem there, the Catalog looks as expected. Has anybody else run into this or a similar problem? Is it a bug in the ZOpeBook in ZOpe or in my (unplugged) brain?
Any help appreciated,
Chris & Christian, Details are needed. I'll ask the obvious. Is your NewsItem Catalogaware? If not, then is it failing with a manual update? I just (last 2-3 days) referred to 'The Book' about some cataloging issues and found it to be very helpful. I am indexing ZClass properties too. I have not used a Python Script to return an item to index yet though. This is using 2.3.2 as well. -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
Hi Chris, I had the same problem, and I have the solution too. The book is not completely up to date. This evening, I'll post a message to elaborate. See you, greetings, Antwan Reijnen. At 11:28 AM 5/16/01 +0900, you wrote:
Hi fellow Zopers,
I've been running in some problems with Cataloging and went to the ZopeBook to see whats wrong. In trying to work through the examples in Chapter 9, Automatic Cataloging, I found that with the latest and greatest Zope 2.3.2, the Catalog fails to acquire and catalog the properties of my NewsItem. Just to verify that I am not doing something very stupid wrong, I went through the same exercise with an old Zope 2.2.1 I had lying around. No problem there, the Catalog looks as expected. Has anybody else run into this or a similar problem? Is it a bug in the ZOpeBook in ZOpe or in my (unplugged) brain?
Any help appreciated,
Chris --
Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Antwan Reijnen -
Chris McDonough -
Christian Wittern -
Tim Cook