[Zope-CMF] How to make "undo" contextual?

Tres Seaver tseaver at zope.com
Tue Nov 4 12:35:15 EST 2003


On Tue, 2003-11-04 at 11:16, David Chandek-Stark wrote:

> Is there a simple way to make the default "Undo" action (in portal_undo) 
> contextual the way it is in the ZMI?

Nope, not without extending ZODB.  The transaction records information
about the transaction based on the "published" object's innermost
parent;  in most CMF transactions, the published object is a template,
and its parent is the CMF site, not the content object which was the
logical target of the transaction.  Until we can add more metadata to
the transaction, we can't filter on it.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com





More information about the Zope-CMF mailing list