Re: [Zope-dev] how can I prevent undo?

2003-10-27 Thread Jeffrey P Shell
Actually, this should be doable by removing access to the ``Undo 
changes`` permission.

--
Jeffrey P Shell
[EMAIL PROTECTED]
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 
[EMAIL PROTECTED] 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  -  [EMAIL PROTECTED]
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 )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )


Re: [Zope-dev] how can I prevent undo?

2003-10-26 Thread 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 [EMAIL PROTECTED]

 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


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )


[Zope-dev] how can I prevent undo?

2003-10-26 Thread robert
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


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )


Re: [Zope-dev] how can I prevent undo?

2003-10-26 Thread 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 [EMAIL PROTECTED] 
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  -  [EMAIL PROTECTED]
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 )