[Zope] ZCatalog

Chris McDonough chrism@digicool.com
Wed, 14 Mar 2001 17:01:01 -0500


Antonio,

The catalog doesn't generally keep track of objects by their id.  Instead it
keeps track of them by their physical path.

so:
path = string.join(dic.obname.getPhysicalPath(), '/')
dic._delObject(obname)
yourcatalog.uncatalog_object(path)

... should work.

----- Original Message -----
From: "Antonio Costa" <anjc@fct.unl.pt>
To: "zope" <zope@zope.org>
Sent: Wednesday, March 14, 2001 4:12 PM
Subject: [Zope] ZCatalog


> Hi there-
>
> The problem is this!
>
> When I want to remove an object from the catalog by doing:
> 1.dic._delObject(o_id, '')
> 2.Products.ZCatalog.ZCatalog.ZCatalog.uncatalog_object(self.catalogo,
> o_id)
>
> I romove it from the Zope and the catalog but it continues appearing in
> my searches. I have to manually go to the catalog and do
> Advanced->Update Catalog.
>
> Is there any other way of doind this automatically in python?
>
> Thanks in advance.
>
> António
> --
> URL: http://www.terravista.pt/Enseada/1831
>      http://accosta.planetaclix.pt
>      http://students.fct.unl.pt/~anjc
>
> PT is Portugal
>
>                        #######
>                        #  #  #
>                        #" #" #
>  Linux                ##vvvvv##
>  Rules!              ##  vvv  ##
>                     #          ##
>                    ##           ##
>                    ###          ###
>                  +++#####       ##++
>                 ++++++#       #++++++
>                 +++++++#     #+++++++
>                   +++++#######+++++
>                     +++       +++