hi all, i managed to get a ZCLass to automatically catalog its properties. and using source stolen from zope search page, tried to enable searching. it works to a point. the problem: when a term is entered i do get the results. but sometimes i got a key error. attached is the traceback. the problem is that i can't really point what caused the error. the error value is random. i used to see the problem ion the old zope site, but no more now. any hints, help, docs, appreciated. thanks Error Type: KeyError Error Value: 166 <!-- Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: r) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: r) File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: r) File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: r) File /usr/local/Zope/lib/python/DocumentTemplate/DT_In.py, line 592, in renderwb (Object: Catalog) File /usr/local/Zope/lib/python/Products/ZCatalog/Lazy.py, line 190, in __getitem__ File /usr/local/Zope/lib/python/Products/ZCatalog/Catalog.py, line 181, in __getitem__ KeyError: (see above)
-- ------------------------------------------------------ http://www.kedai.com.my/kk Am I Evil?