[Zope] Clipboard functionality in my app

Douwe Osinga dmo@oberon.nl
Thu, 8 Nov 2001 14:09:31 +0100


Hi Everyone,

I want to allow my users to cut/paste/copy stuff just like you can in =
zope, but without using the actual zope environment. So, I looked at the =
source code of the zope environment, added=20

'<input type=3D"checkbox" name=3D"ids:list" value=3D"%s"/>' % =
context.getId()

to each item, put them in a form and added the various buttons that Zope =
generates.

This works. Except for two things:

1) After the user presses Cut, my browser will be pointed to the Zope =
environment, eventhough the url in address still has the right value. I =
would like to return to the page where I came from, not the Zope =
environment.
2) I cannot determine when to show the Paste button. Zope only shows it =
when Paste is possible. I would like to do this too and build some more =
restrictions (not all objects should be pastable in all folders).

Any ideas?=20

Thanks in advance,

Douwe