[Zope] Catalog import duplicates entries...how to avoid?
Chris McDonough
chrism@zope.com
Thu, 06 Jun 2002 08:05:08 -0400
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"