[CMF-checkins] CVS: CMF/CMFCore - ActionsTool.py:1.31.2.5
Florent Guillaume
fg@nuxeo.com
Sun, 4 Aug 2002 13:26:39 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv10702
Modified Files:
Tag: chrism-actions-branch
ActionsTool.py
Log Message:
Merged change from HEAD:
Made a comment explaining the use of startswith() on action categories.
=== CMF/CMFCore/ActionsTool.py 1.31.2.4 => 1.31.2.5 ===
category = action.get('category', 'object')
permissions = action.get('permissions', None)
# context will be one of object, folder, or portal
+ # startswith() is used so that we can have several different
+ # categories that are checked in the object or folder context.
if (object is not None and
(category.startswith('object') or
category.startswith('workflow'))):