[Zope] undoing

Andreas Pakulat ap125@informatik.uni-rostock.de
Sat, 24 May 2003 22:04:08 +0200


--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 24.Mai 2003 - 14:28:20, martin f krafft wrote:
> when i delete file A and create file B (by a different name), then
> i cannot undo the deletion of A without also undoing the creation of
> B. if you ask me, this makes undoing more or less useless. isn't
> undo information stored per object rather than for the database?

I'm relatively new to zope, so if I say something wrong please correct
me.

The first thing to learn about Zope is that it doesn't operate on files,
it works with objects! So you'll have to understand a bit about OO, the
second thing is that Zope is kind of an OODatabase. And that is the
answer to your question, your are deleting an element of a folder object
and then creating a new one, both are database trancsactions on the same
object - the folder object. So the behaviour is OK I think, as you'll
have to undo transactions that were made to Object X before the
delete-transaction in any database, I know.

Andreas

--=20
Be careful!  UGLY strikes 9 out of 10!

--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+z9A4uekl0h+nrMIRArHZAKCc8QHv/1Etc6tO5Qk91UiBxeA3HwCglhf+
cYJnHdT0HRcd1Hx5g7DR700=
=qiln
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--