Zope Book, once enticing me to delve into Zope, is once again outdated :-( I downloaded Zope 2.4.1 hoping to make use of new Indexes. I tried to follow the first few paragraphs in Zope Book. No go. Here's what I did step by step: - Created ZCatalog with the id "Catalog" in root folder. - Cataloged all DTML documents (I have just about 150). - Entered the "Add Z Search Interface", and selected Catalog as the searchable object. - Gave "rrr" as Report id, and "sss" as Search input id. Clicked Add. The methods "rrr" and "sss" were created. - Clicked on "sss". Clicked on the View tab. Crash: Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/src/zope/Zope-2.4.1-src/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/OFS/DTMLMethod.py, line 194, in __call__ (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/OFS/DTMLMethod.py, line 187, in __call__ (Object: standard_html_footer) File /usr/src/zope/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: standard_html_footer) File /usr/src/zope/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_Var.py, line 278, in render (Object: web_updated) KeyError: web_updated I tried the same step by step method in Zope 2.3.2. It works. Zope Book says that it is synchronized with Zope 2.4.x. IMHO it is not true. Zope Book was supposed to be updated as neccessary. It is not. Collector does not work. It has been down since September 5. I can't even file a Documentatiob request. Please help me. I need up to date documentation describing current ZCatalog behaviour in Zope 2.4.1 -- Milos Prudek
----- Original Message ----- From: "Milos Prudek" <milos.prudek@worldonline.cz> To: <zope@zope.org> Sent: Wednesday, September 12, 2001 14:02 Subject: [Zope] ZCatalog and the sad state of Zope Book
Zope Book, once enticing me to delve into Zope, is once again outdated :-(
I downloaded Zope 2.4.1 hoping to make use of new Indexes. I tried to follow the first few paragraphs in Zope Book. No go. Here's what I did step by step:
- Created ZCatalog with the id "Catalog" in root folder.
- Cataloged all DTML documents (I have just about 150).
- Entered the "Add Z Search Interface", and selected Catalog as the searchable object.
- Gave "rrr" as Report id, and "sss" as Search input id. Clicked Add. The methods "rrr" and "sss" were created.
- Clicked on "sss". Clicked on the View tab. Crash:
Works for me with a fresh 2.4.1 checkout
Site Error
An error was encountered while publishing this resource.
KeyError
Sorry, a site error occurred.
Traceback (innermost last): File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/src/zope/Zope-2.4.1-src/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/OFS/DTMLMethod.py, line 194, in __call__ (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: sss) File /usr/src/zope/Zope-2.4.1-src/lib/python/OFS/DTMLMethod.py, line 187, in __call__ (Object: standard_html_footer) File /usr/src/zope/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: standard_html_footer) File /usr/src/zope/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_Var.py, line 278, in render (Object: web_updated) KeyError: web_updated
"web_updated" is not used by Zope - neither in .py files nor in .dtml files. Are you using any other third-party products ? Andreas
"web_updated" is not used by Zope - neither in .py files nor in .dtml files. Are you using any other third-party products ?
I found the error. And it was my own error. Neither Zope nor Zope Book are at fault. I'm very sorry. Here's what happened: My standard_html_footer is modified. It displays a web_updated property. It is a property of Zope root folder. When importing data from Zope 2.3.2 I did not transfer this property. My sincere apologies. Still, does the current instance of Zope Book descibe all new features of ZCatalog? I was searching through Zope looking for newest ZCatalog information, but there was not anything useful. I'm interested in PluginIndexes. The information in README for PluginIndexes is very sparse. What are PluginIndexes good for? Let's say I have two ZClasses, Z1 and Z2. Both have a property with a same name. I need to make a query that will return data only from Z1. - Can I do that using single ZCatalog named "Catalog" and PluginIndexes? How? - Is it still inevitable to only have one ZCatalog and to call it "Catalog" if I need automatic reindexing? -- Milos Prudek
participants (2)
-
Andreas Jung -
Milos Prudek