[Zope-CMF] Re: [CMF-checkins] CVS: Products/CMFCore -
Stefan H. Holek
stefan at epy.co.at
Sat Jul 16 09:18:03 EDT 2005
Don't be scared, I checked in a whole bunch of tests too. ;-)
The problem we have is that CMF evaluates permissions for 'object'
and 'workflow' actions in the object context, and 'folder' actions in
the folder context. Other action categories are evaluated in the
context of the portal, which is rarely useful. Plone has 'document'
actions and we need permissions checked on the object, not the
portal. It is a one line change (with 4 tests). If you really don't
want it, we will have to resort to monkey patching ActionInfo.
On 16. Jul 2005, at 14:20, Jens Vagelpohl wrote:
> On 16 Jul 2005, at 14:15, Stefan H. Holek wrote:
>> Update of /cvs-repository/Products/CMFCore
>> In directory cvs.zope.org:/tmp/cvs-serv12386/CMFCore
>> Modified Files:
>> Tag: CMF-1_5-branch
>> Log Message:
>> CMFCore/ActionInformation.py: Permissions of action categories
>> with 'document' are now evaluated in the object context instead of
>> portal context. This should probably be generalized some more.
> Could you explain a bit more what problem this is solving? Check-
> ins into the branch a day before a final production version is
> released with insufficient problem descriptions that do not seem to
> be critical bugfixes to CMF scare me. A lot.
Software Engineering is Programming when you can't. --E. W. Dijkstra
More information about the Zope-CMF