Hi there, I have objects that are linked to an external database. When they are deleted, also the data in the external database is deleted. Now an undo is bad, because I then get an object with ab link to non existing data. I must therefore prevent undo. How can I do that? Thanks, Robert -- mit freundlichen GrĂ¼ssen Robert Rottermann www.redCOR.ch
By removing the Undo tab or by removing Un doSupport from the baseclasses of your objects? -aj --On Sonntag, 26. Oktober 2003 20:38 Uhr +0100 robert <robert@redcor.ch> wrote:
Hi there, I have objects that are linked to an external database. When they are deleted, also the data in the external database is deleted. Now an undo is bad, because I then get an object with ab link to non existing data. I must therefore prevent undo. How can I do that?
Thanks, Robert
Thanks again, I now added def undoable_transactions(self, first_transaction=None, last_transaction=None, PrincipiaUndoBatchSize=None): return () to my class. This seems to work. Is this advisable or are there caveat to be avare of? Robert Am Sonntag, 26. Oktober 2003 21:49 schrieb Andreas Jung:
By removing the Undo tab or by removing Un doSupport from the baseclasses of your objects?
-aj
--On Sonntag, 26. Oktober 2003 20:38 Uhr +0100 robert <robert@redcor.ch>
wrote:
Hi there, I have objects that are linked to an external database. When they are deleted, also the data in the external database is deleted. Now an undo is bad, because I then get an object with ab link to non existing data. I must therefore prevent undo. How can I do that?
Thanks, Robert
-- mit freundlichen GrĂ¼ssen Robert Rottermann www.redCOR.ch
Actually, this should be doable by removing access to the ``Undo changes`` permission. -- Jeffrey P Shell jeffrey@cuemedia.com On Oct 26, 2003, at 1:49 PM, Andreas Jung wrote:
By removing the Undo tab or by removing Un doSupport from the baseclasses of your objects?
-aj
--On Sonntag, 26. Oktober 2003 20:38 Uhr +0100 robert <robert@redcor.ch> wrote:
Hi there, I have objects that are linked to an external database. When they are deleted, also the data in the external database is deleted. Now an undo is bad, because I then get an object with ab link to non existing data. I must therefore prevent undo. How can I do that?
Thanks, Robert
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
participants (3)
-
Andreas Jung -
Jeffrey P Shell -
robert