[Zope-dev] Zope cut & paste behaviour

Brian Lloyd brian@digicool.com
Mon, 16 Apr 2001 12:36:17 -0400


> For one, it doesn't seem possible to move an object more up to the root
> (or anywhere not *below* the folder the object was cut/copied from). This
> is partially due to the fact that the __cp (clipboard) cookie has 
> it's path
> set to it's originating folder. I.e move /foo/bar/a to /foo/a or 
> to /blah/a
> 
> Clipboards seem to be local to the folder. This may be related to 
> the nature
> of cookies (with their path set to that the path of that folder), 
> I'm not sure.
> If you cut 'a' in /foo/bar, then cut 'b' from / and try to paste 'b' in
> /foo/bar, you'll end up with '/foo/bar/a' again. And as it is not 
> possible 
> to clear your clipboard (esp which opera, which cannot clear 
> cookies), it's 
> very difficult to move objects in these circumstances.

Actually, as of 2.3.x (and for quite some time before), Zope 
uses 'SCRIPT_NAME' as the "path" value for the cookie. That 
should be doing the right thing, except in certain virtual 
hosting situations.

I just checked in a fix that should deal with the odd VH 
situation, but I don't understand why you are seeing the 
behavior that you are. What client are you using? 

Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com