[Zope-dev] CatalogAwareness and CopySupport, cut and paste problem

Itamar Shtull-Trauring itamars@ibm.net
Wed, 01 Mar 2000 19:06:04 +0200


"König Alexander" wrote:

> The automatic indexing and unindexing on creation and deletion works fine.
> When a cutted object is pasted into another folder, manage_beforeDelete
> raises
> 
> Error Type: AttributeError
> Error Value: aq_acquire.
> 
> Debugging brought up, that absolute_url() doesn't work when the object is
> marked
> as cutted. The acquisitiontree is traversed up to th root-application
> object.
> Zope.absolute_url() tries to call self.aq_acquire('REQUEST').script.

I have exactly the same problem.  I solved it by using absolute_url(1) and
tacking on '/' to the beginning in the CatalogAware.url() function.  Once
you do that you have problems with self.REQUEST not existing, so comment out
that line and set script_name or whatever it's called to "".  At which point
you start wondering why CatalogAware doesn't use the code PortalContent does
and way absolute_url is so broken.  And what is REQUEST['SCRIPT_NAME']
anyway?

-- 
                -=  This is NOT a pyramid scheme  =-
The SNAFU Principle: True communication is possible only between equals

                      Itamar S.T.  itamars@ibm.net