ZopeUndo.Prefix is still used

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <1471164681.2020294.694771657.3479E3FA@webmail.messagingengine.com>
Hi.

I saw Jim asking about the current state of ZopeUndo.Prefix.

From what I can tell, it's still used - probably in the same way it has
been for a long time. The ZopeUndo.Prefix code these days lives in
https://github.com/zopefoundation/ZopeUndo/blob/master/src/ZopeUndo/Prefix.py.

The code was split out into its own project, so that one could install
only this bit into a ZEO server Python environment, without pulling in
all of Zope2.

On the Zope2 side, it's used from
https://github.com/zopefoundation/Zope/blob/master/src/App/Undo.py#L71,
specifically it calls storage.undoInfo with a Prefix-based specification
for both user_name and description and later calls storage.undoMultiple
with the resulting ids.

We could simplify this on the Zope2 side, by simply dropping the
specification/filter and restrict the Undo ZMI page to only be available
on the ZMI root object, instead of being contextually available on each
ZMI folder.

Would that help?

Hanno

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.