Does SiteRoot Interfere With Copy-Paste?
I have encountered a peculiarity and I'm having trouble understanding it. I have a folder on my site called "learning" where I experiment with stuff I'm figuring out. When I get something working there, I want to copy the resulting object(s) and paste it(them) into another folder on my site. This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't. In this folder, the Paste button just never appears. Everywhere else on the site, it's fine. Anyone got an insight? -- Dan Shafer, Author-Consultant http://www.danshafer.com http://www.shafermedia.com
On Mon, Dec 10, 2001 at 05:33:00PM -0800, Dan Shafer wrote:
I have encountered a peculiarity and I'm having trouble understanding it.
I have a folder on my site called "learning" where I experiment with stuff I'm figuring out. When I get something working there, I want to copy the resulting object(s) and paste it(them) into another folder on my site.
This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't.
In this folder, the Paste button just never appears. Everywhere else on the site, it's fine.
Anyone got an insight?
I saw the problem many times, but I was never able to fix it :( To overcome this I edit the site using direct connection to ZServer (on port 8080). Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Dan Shafer writes:
I have encountered a peculiarity and I'm having trouble understanding it.
I have a folder on my site called "learning" where I experiment with stuff I'm figuring out. When I get something working there, I want to copy the resulting object(s) and paste it(them) into another folder on my site.
This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't.
In this folder, the Paste button just never appears. Everywhere else on the site, it's fine. Zope implements the "clipboard" (used for copying and pasting) via a cookie. Apparently, the cookie is not sent to your siterooted folder. This may happen when the browser thinks the folder belongs to a different domain. However, I do not see how the SiteRoot should cause that.
Dieter
From: "Dieter Maurer" <dieter@handshake.de>
Zope implements the "clipboard" (used for copying and pasting) via a cookie. Apparently, the cookie is not sent to your siterooted folder. This may happen when the browser thinks the folder belongs to a different domain. However, I do not see how the SiteRoot should cause that.
That, in fact, is exactly what SiteRoot does... :-)
On Tuesday 11 December 2001 1:33 am, Dan Shafer wrote:
This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't.
In this folder, the Paste button just never appears. Everywhere else on the site, it's fine.
This one confused me for a bit. The site root tansforms all the URLs in its folder, even the management interface ones. Thus, as Dieter points out, the cookie which implements the 'cut' function will be set as coming from the domain that your siteroot is set to. So, when you visit a different folder, you are effectively visiting a different domain, and consequently your browser doesn't make the original cookie with the 'cut' information available. Therefore, it appears to zope as if there's nothing on the clipboard. Don't know if that makes it any clearer. I'm not sure if the 8080 thing will work, but you can always get around it by using the 'export' button instead. hth, Chris.
Chris Minds wrote:
On Tuesday 11 December 2001 1:33 am, Dan Shafer wrote:
This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't.
In this folder, the Paste button just never appears. Everywhere else on the site, it's fine.
This one confused me for a bit.
The site root tansforms all the URLs in its folder, even the management interface ones. Thus, as Dieter points out, the cookie which implements the 'cut' function will be set as coming from the domain that your siteroot is set to. So, when you visit a different folder, you are effectively visiting a different domain, and consequently your browser doesn't make the original cookie with the 'cut' information available. Therefore, it appears to zope as if there's nothing on the clipboard.
Don't know if that makes it any clearer.
It certainly does and I see now why it would have to be that way. Thanks for the very clear explanation.
I'm not sure if the 8080 thing will work, but you can always get around it by using the 'export' button instead.
Then that's what I'll do! Thanks again.
hth, Chris.
-- Dan Shafer, Author-Consultant http://www.danshafer.com http://www.shafermedia.com
When the ZMI does a Copy/Cut, it sets a cookie with the cut information, and gives this cookie a Path of BASEPATH1, which in the case of a SiteRoot with a non-/ Path will interfere with your ability to do a paste out of the SiteRoot. I don't have a handy solution though, except to advise to do without the SiteRoot if it's not needed. Florent Dan Shafer <dan@gui.com> wrote:
I have encountered a peculiarity and I'm having trouble understanding it.
I have a folder on my site called "learning" where I experiment with stuff I'm figuring out. When I get something working there, I want to copy the resulting object(s) and paste it(them) into another folder on my site.
This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't.
In this folder, the Paste button just never appears. Everywhere else on the site, it's fine.
Anyone got an insight? -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com
Dan, I posted a solution to this months ago. I was faced with the exact problem and had AccessRules everywhere for virtual sites. Then I stumbled on eVHM with gives you the redirect control you need from AccessRules, but allows you to cut/copy/paste freely around your zope. http://www.zope.org/Members/sfm/SiteAccessEnhanced I have now replaced most of my AccessRules with a single eVHM in zope's root. This is one of my favorite products now, next to Formulator. :) HTH. Trevor
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dan Shafer Sent: Monday, December 10, 2001 8:33 PM To: zope@zope.org Subject: [Zope] Does SiteRoot Interfere With Copy-Paste?
I have encountered a peculiarity and I'm having trouble understanding it.
I have a folder on my site called "learning" where I experiment with stuff I'm figuring out. When I get something working there, I want to copy the resulting object(s) and paste it(them) into another folder on my site.
This works fine except in one of my folders. The only difference I can see between the folders where it does work and this renegade is that the folder where it doesn't work has a SiteRoot and the others don't.
In this folder, the Paste button just never appears. Everywhere else on the site, it's fine.
Anyone got an insight? -- Dan Shafer, Author-Consultant http://www.danshafer.com http://www.shafermedia.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 )
participants (7)
-
Chris Hinds -
Dan Shafer -
Dieter Maurer -
Florent Guillaume -
Lennart Regebro -
Oleg Broytmann -
Trevor Toenjes