[Zope-CMF] ActionsTool limitations

Tres Seaver tseaver@zope.com
19 Jul 2002 12:13:03 -0400


On Fri, 2002-07-19 at 10:15, Florent Guillaume wrote:
> [I forgot to copy the list]
> 
> In article <3D357E66.3010105@zope.com> shane writes:
> > alan runyan wrote:
> > > we need to have categories divorced from 'what context we are checking the
> > > permission against'.  so one possible ugly hack is to have a
> > > permission_context which would be one of 'folder,object,portal'.  this would
> > > need to be on each action.  this way we could say, 'my category uses object
> > > to determines its permission settings' or uses folder context to determine
> > > its permission settings.
> > 
> > That sounds like a pretty reasonable change, actually.  Note that you 
> > wouldn't quite be saying "my category uses object to determine its 
> > permission settings", you would be saying "this action affects the 
> > object, so check permissions in the context of the object."
> 
> How about a low-tech change for 1.3: all categories that
> startswith('object') or 'workflow' or 'local' are in the context of the
> object, and those with 'portal' in that of the portal, otherwise in that
> of the folder.
> 
> If it's ok I'll checkin the change.

+1.


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