[Zope] Uncatalog problem... Cannot delete Zclass instance!!

Geir B Hansen geirh@funcom.com
Fri, 29 Oct 1999 15:20:27 +0200


I have a Zclass newsdoc, with base classes of catalogaware and
object-manager.. Everything worked nicely, it added and deleted itself
nicely from the catalog and in all aspects behaved as expected..
The problem was when i tried to delete an instance of it..  I get the
error :
Error Type: ValueError
Error Value: Uncatalog of absent id
'exp/news/HRnews/newsdoc199910101612'
- So it evidently  cannot uncatalog the newsdoc from the catalog, but
should this stop it from deleting the instance ??
I tried manually removing it from the catalog, then deleting it -result
:  didn't work..
Tried clearing the entire catalog, then deleting - result : didn't
work..
Tried indexing all documnets again, then deleting - result : didn't work
tried changing the id of the Zclass, to break the documents, so that
they would not inherit from zcatalog - result : they didn't break, thus
it didn't work ..
I'd really like not having to actually delete my Zclass and the recreate
it..
Ideas on what i might do wrong ??


Traceback follows:

Error Type: ValueError
Error Value: Uncatalog of absent id
'exp/news/HRnews/newsdoc199910101612'

Traceback (innermost last):
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/ZPublisher/Publish.p
y, line 214, in publish_module
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/ZPublisher/Publish.p
y, line 179, in publish
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/Zope/__init__.py,
line 201, in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/ZPublisher/Publish.p
y, line 165, in publish
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/ZPublisher/mapply.py
, line 160, in mapply
    (Object: manage_delObjects)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/ZPublisher/Publish.p
y, line 102, in call_object
    (Object: manage_delObjects)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/OFS/ObjectManager.py
, line 392, in manage_delObjects
    (Object: ElementWithAttributes)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/OFS/ObjectManager.py
, line 264, in _delObject
    (Object: ElementWithAttributes)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/Products/ZCatalog/Ca
talogAwareness.py, line 134, in manage_beforeDelete
    (Object: CatalogAware)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/Products/ZCatalog/Ca
talogAwareness.py, line 191, in unindex_object
    (Object: CatalogAware)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/Products/ZCatalog/ZC
atalog.py, line 357, in uncatalog_object
    (Object: ElementWithAttributes)
  File
/usr/local/funcom/intranett/python/Zope2/lib/python/Products/ZCatalog/Ca
talog.py, line 373, in uncatalogObject
ValueError: (see above)


------------------------------------------------
          Geir B Hansen
      geirh@funcom.com
Web-designer / Graphic artist
          Funcom Oslo
------------------------------------------------