Zope icon indicating copy to clipboard operation
Zope copied to clipboard

Cutting/Pasting across databases

Open georgpfolz opened this issue 3 years ago • 1 comments

It's not a bug, it's a feature request about something that's scaring me in my daily work:

I usually have several databases (ZODBs) mounted in my Zope instances. Copying/Pasting across these databases in the ZMI is not a problem, but Cutting/Pasting breaks the whole instance.

I'm aware of this of course and I'm paying close attention, but nonetheless I would prefer not to have to worry about breaking my instance by mistake.

So here's my request:

Would it be possible to treat cut/paste across databases differently? For example like one of the following:

  • aborting the operation with an error
  • showing a warning dialog
  • performing a copy/paste instead

What version of Python and Zope/Addons I am using:

  • FreeBSD 12.3
  • Python 3.8.9
  • Zope 5.3

georgpfolz avatar Feb 17 '22 11:02 georgpfolz

Georg Pfolz wrote at 2022-2-17 03:19 -0800:

It's not a bug, it's a feature request about something that's scaring me in my daily work:

I usually have several databases (ZODBs) mounted in my Zope instances. Copying/Pasting across these databases in the ZMI is not a problem, but Cutting/Pasting breaks the whole instance.

I'm aware of this of course and I'm paying close attention, but nonetheless I would prefer not to have to worry about breaking my instance by mistake.

So here's my request:

Would it be possible to treat cut/paste across databases differently? For example like one of the following:

You can register a subscriber for IObjectMovedEvent and check there that _p_jar for the new parent is identical to that of the moved object (maybe, if they are different from None).

d-maurer avatar Feb 17 '22 12:02 d-maurer