[Zope] Re: Can't rename a CatalogAware ZClass Instance
Alexandre Ratti
alex@gabuzomeu.net
Wed, 27 Oct 1999 12:17:30 +0200
At 12:00 26/10/1999 -0700, you wrote:
>Date: Tue, 26 Oct 1999 11:19:28 +0000
>Subject: [Zope] Can't rename a CatalogAware ZClass Instance
>From: Kam Cheung <zope@littlecircle.com>
>To: Zope <zope@zope.org>
>
>It seems that I can't rename/copy/paste a CatalogAware ZClass Instance. Is
>this true? If so, is there a workaround?
I have the same problem with cutting and pasting. So far, I haven't found a
solution. This looks related to CatalogAwareness. (I copied a traceback
snippet below for reference). I can still copy and paste a ZClass Instance,
then delete the original instance.
As for renaming, I can rename the instances OK. Can you see the IDs of your
instances? If you cannot see the ID values on the property pages and cannot
access them from DTML take a look at this draft document:
<http://www.zope.org/Members/AlexR/ZClassIDBug>. It might help.
Cheers.
Alexandre
--- traceback ---
Error Type: AttributeError
Error Value: REQUEST
(...)
File D:\ZOPE\GISTI\lib\python\OFS\ObjectManager.py, line 264, in _delObject
(Object: ElementWithAttributes)
File D:\Zope\Gisti\lib\python\Products\ZCatalog\CatalogAwareness.py,
line 130, in manage_beforeDelete
(Object: CatalogAware)
File D:\Zope\Gisti\lib\python\Products\ZCatalog\CatalogAwareness.py,
line 187, in unindex_object
(Object: CatalogAware)
File D:\Zope\Gisti\lib\python\Products\ZCatalog\CatalogAwareness.py,
line 157, in url
(Object: CatalogAware)
File D:\ZOPE\GISTI\lib\python\OFS\SimpleItem.py, line 316, in absolute_url
(Object: CatalogAware)
AttributeError: (see above)
---------