[Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Chris Withers

...is bad :(

Because Catalog stores objects not by reference but by the path to where
they are, if you move those objects, you'll start getting lots of
'Uncatalog of absent id' errors and your search results will point to
objects that don't exist.

And ideas/comments?

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Chris Withers

Terry Kerr wrote:
 
 how are you moving them?
 
 catalogAware objects unindex themselves when deleted then reindex
 themselves if pasted somewhere.

The objects aren't catalogAware..

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Terry Kerr

then as far as i know there is no way around the problem?  anyone else
have comment?

i think that is the whole point of making objects catalogAware.

Chris Withers wrote:

 Terry Kerr wrote:
 
  how are you moving them?
 
  catalogAware objects unindex themselves when deleted then reindex
  themselves if pasted somewhere.

 The objects aren't catalogAware..

 Chris

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Andy Dawkins

Whilst in agreement with Chris I would like to throw another situation in
here that CatalogAware doesn't cater for.

If you change a folder name, somewhere higher in the tree, then all the
cataloged objects references are incorrect.

I think this is the same problem that Chris mentioned but a different
implementation.

-Andy

 then as far as i know there is no way around the problem?  anyone else
 have comment?

 i think that is the whole point of making objects catalogAware.

 Chris Withers wrote:

  Terry Kerr wrote:
  
   how are you moving them?
  
   catalogAware objects unindex themselves when deleted then reindex
   themselves if pasted somewhere.
 
  The objects aren't catalogAware..
 
  Chris



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Chris Withers

Terry Kerr wrote:
 i think that is the whole point of making objects catalogAware.

But catalogAware doesn't support subtransactions. It also doesn't handle
indirect deleting and several other conditions IIRC..

Also, in this particular case, the ZCatalog is a Squishdot Site and the
obejcts are Squishdot Postings so I don't really knwo how I could work
CatalogAware in even if I wanted to :S

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Moving Objects that are Cataloged...

2000-08-04 Thread Chris Withers

Andy Dawkins wrote:
 
 Whilst in agreement with Chris I would like to throw another situation in
 here that CatalogAware doesn't cater for.
 
 If you change a folder name, somewhere higher in the tree, then all the
 cataloged objects references are incorrect.
 
 I think this is the same problem that Chris mentioned but a different
 implementation.

Slightly different, but still the same basic problems caused by storing
a patch to an object rather than a reference to the object.

Can someone remind me of the advtanges of storing the path?

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )