[Zope] Catalog import duplicates entries...how to avoid?

Robert Rottermann robert@redcor.ch
Thu, 6 Jun 2002 20:30:12 +0200


I had the same problem.
Only ofter deleting the catalog and recreating a new one I got rid of the
dupplicates.
I *think* the problem stems from the fact that the catalog indices have
changed between 2.3 and 2.4
Robert
----- Original Message -----
From: "Chris McDonough" <chrism@zope.com>
To: "John Schinnerer" <johnschinnerer@yahoo.com>
Cc: "zope list" <zope@zope.org>
Sent: Thursday, June 06, 2002 2:05 PM
Subject: Re: [Zope] Catalog import duplicates entries...how to avoid?


> Are the paths that show up in the Catalog "Catalog" view of the
> duplicated objects the same as the paths of the non-duplicate objects?
> Are the objects smart enough to decatalog themselves on deletion (e.g.
> are they "CatalogAware" or "CatalogPathAware"?)
>
> John Schinnerer wrote:
> > Howdy again,
> >
> > (This is the reason for my question about a 'select all' button in the
> > Catalog tab...)
> >
> > When importing a new version of a site to my live server, the catalog
> > (there's only one in the site, default name, and it's in a subfolder,
> > not in the root) double-indexes everything.  That is, after import a
> > catalog search returns two of everything found instead of just one; the
> > catalog tab shows two of each item, and twice the number of expected
> > total items.
> >
> > Import process is:
> > * delete all ('old') objects in root folder
> > * import 'new' site .zexp file, which comes in as a subfolder of root
> > that contains all 'new' site objects
> > * go to imported folder, select all ('new') objects and click 'Cut'
> > * go to root folder and click 'Paste'
> > * delete the (now empty) subfolder that resulted from the import
> >
> > Everything works fine after this except for the catalog...
> > Anyone know why this catalog double-indexing happens in this case
> > and/or how to avoid it?
> >
> > thanks,
> > John S.
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
> --
> Chris McDonough                    Zope Corporation
> http://www.zope.org             http://www.zope.com
> "Killing hundreds of birds with thousands of stones"
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>