I'm experiencing an error that I haven't seen yet. Is there a simple resolution to this ? I need to have this site ready for production and don't want to ship it with an error that I don't understand. I have several instances of this message printing to standard out. --ERROR------------------------- 2003-06-26T15:56:29 INFO(0) CatalogBrains getObject raised an error Traceback (innermost last): File /var/www/zope/Zope-2.6.1-linux2-x86/lib/python/Products/ZCatalog/CatalogBrains.py, line 42, in getObject File /var/www/zope/Zope-2.6.1-linux2-x86/lib/python/OFS/Traversable.py, line 120, in unrestrictedTraverse (Object: Zope) (Info: (['stakeholderdir.xls', 'SRD', 'PM', 'CSE', 'Cheyenne'], 'test')) File /var/www/zope/Zope-2.6.1-linux2-x86/lib/python/OFS/Application.py, line 108, in __bobo_traverse__ (Object: Zope) KeyError: test --------------------------------------- Site Configuration: - Zope 2.6.1-linux2-x86 - CMF 1.3.1 - Plone 1.3.0 - egenix-mx-base-2.0.4. - psypsycopg-1.1.4 - Apache 2.x - Redhat 8.0 Much Thanks!!!! -- Nick Pavlica EchoStar Communications CAS-Engineering (307)633-5237
Pavlica, Nick wrote:
I'm experiencing an error that I haven't seen yet. Is there a simple resolution to this ? I need to have this site ready for production and don't want to ship it with an error that I don't understand. I have several instances of this message printing to standard out.
Most likely it is a CatalogAware object that is in the catalog, but no longer exists. Clean up the catalog, or Just put an exception around it. Whenever I need to call getObject I pass the catalog result through this small utillity function. ## Script (Python) "util_brains2objs" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=cat_results ##title=Turn catalog brains to objects ## # Turns a list of catalog results (brains) into objects, # skipping dead catalog results results = [] for cat_res in cat_results: try: results.append(cat_res.getObject()) except: # sometimes there are dead objects in the catalog pass return results regards Max M
On Friday 27 June 2003 1:35 am, Max M wrote:
Pavlica, Nick wrote:
I'm experiencing an error that I haven't seen yet. Is there a simple resolution to this ? I need to have this site ready for production and don't want to ship it with an error that I don't understand. I have several instances of this message printing to standard out.
Most likely it is a CatalogAware object that is in the catalog, but no longer exists.
Clean up the catalog, or Just put an exception around it.
What is the best way to clean up the catalog & re-index?
Whenever I need to call getObject I pass the catalog result through this small utillity function.
## Script (Python) "util_brains2objs" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=cat_results ##title=Turn catalog brains to objects ##
# Turns a list of catalog results (brains) into objects, # skipping dead catalog results results = [] for cat_res in cat_results: try: results.append(cat_res.getObject()) except: # sometimes there are dead objects in the catalog pass return results
regards Max M
-- Nick Pavlica EchoStar Communications CAS-Engineering (307)633-5237
participants (3)
-
Dieter Maurer -
Max M -
Pavlica, Nick