[Zope-CMF] Function Removal if Item is locked.
Dieter Maurer
dieter@handshake.de
Thu, 6 Mar 2003 22:06:45 +0100
Patrick wrote at 2003-3-6 15:59 -0000:
> I was wandering if there was a way to prevent the "edit" functionality
> from being displayed if the current "document" is locked via webdav?
> I figured I would edit the main_template of my product, but the
> actions are automatically generated and I just want "edit" to be
> removed from the list. I hope that I am being clear. I appriciate
> any suggestions you all might have. Thanks.
There is a branch in the CMF-CVS that lets type information objects
derive from "ActionProviderBase". This means that the associated
actions get an additional "condition" field (a TALES expression)
where you can restrict further when the action should be shown.
The branch is called somehow like "tsearver-typeinfo-as-a...".
If you are lucky, it will be incorporated in CMF 1.4.
Dieter