[Zope] Unable to resolve 'Uncatalog...' error with PTK

David Riggs driggs@asset.com
Sun, 20 Aug 2000 23:07:59 -0400


Having still more problems with this installation of Zope 2.1.6 and PTK
0.7.1...

I've got several (seems that the number is growing) objects that appear
in my ZCatalog,
and show up on my site, but refuse to let me edit, move or delete them.

Try to delete the object and get the following error:
-------------------------------------------------------------------------------------------------------------------

    Error Type: ValueError
    Error Value: Uncatalog of absent id
'/portal/Members/demo4/D_Application'

Traceback (innermost last):
                 File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
                    File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 179, in
publish
              File C:\PROGRA~1\DEV_PO~1\lib\python\Zope\__init__.py,
line 202, in zpublisher_exception_hook
                                              (Object:
ElementWithAttributes)
                    File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 165, in
publish
                     File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
                                                (Object:
manage_delObjects)
                  File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 102, in
call_object
                                                (Object:
manage_delObjects)
                File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 401, in
manage_delObjects
                                              (Object:
ElementWithAttributes)
                   File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 273, in
_delObject
                                              (Object:
ElementWithAttributes)
     File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 226,
in manage_beforeDelete
                                                    (Object:
D_Application)
       File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 213,
in unindex_object
                                                    (Object:
D_Application)
            File
C:\PROGRA~1\DEV_PO~1\lib\python\Products\ZCatalog\ZCatalog.py, line 357,
in uncatalog_object
                                              (Object:
ElementWithAttributes)
             File
C:\PROGRA~1\DEV_PO~1\lib\python\Products\ZCatalog\Catalog.py, line 373,
in uncatalogObject
                                                ValueError: (see above)
-------------------------------------------------------------------------------------------------------

Updating the ZCatalog doesn't help, nor does clearing it out and
re-populating it.

I've searched through the mailing list archives and all the advice says
to delete the ZCatalog,
delete the trouble items, then undo the Catalog deletion. So I've tried
to delete the ZCatalog
'SiteIndex' and then tried to delete the object and get this different
error:
-----------------------------------------------------------------------------------------------------------

    Error Type: AttributeError
    Error Value: SiteIndex

Traceback (innermost last):
                 File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
                    File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 179, in
publish
              File C:\PROGRA~1\DEV_PO~1\lib\python\Zope\__init__.py,
line 202, in zpublisher_exception_hook
                                              (Object:
ElementWithAttributes)
                    File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 165, in
publish
                     File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
                                                (Object:
manage_delObjects)
                  File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 102, in
call_object
                                                (Object:
manage_delObjects)
                File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 401, in
manage_delObjects
                                              (Object:
ElementWithAttributes)
                   File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 273, in
_delObject
                                              (Object:
ElementWithAttributes)
     File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 226,
in manage_beforeDelete
                                                    (Object:
D_Application)
       File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 213,
in unindex_object
                                                    (Object:
D_Application)
          File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalObject.py, line 318,
in getCatalog
                                                 (Object:
DemoPortalBase)
                                              AttributeError: (see
above)
--------------------------------------------------------------------------------------------------------

It looks like a similar problem was fixed on a recent version of Zope
according to the history file, but so far
all attempts at moving this project over to a more recent version of
Zope/PTK have been less than
successfull.
As always, any and all comments/ suggestions/ help are very much
appreciated...I've found this mailing
list archive to be the most helpful documentation available so far.

Thanks,
Dave.