[CMF-checkins] CVS: Products/DCWorkflow - Default.py:1.5
Jens Vagelpohl
jens@zope.com
Wed, 10 Oct 2001 11:29:10 -0400
Update of /cvs-repository/Products/DCWorkflow
In directory cvs.zope.org:/tmp/cvs-serv25422/DCWorkflow
Modified Files:
Default.py
Log Message:
CMF Tracker 362: switched to using CMFCorePermissions and AccessControl.Permissions instead
of using hardcoded strings
=== Products/DCWorkflow/Default.py 1.4 => 1.5 ===
__version__='$Revision$'[11:-2]
+from Products.CMFCore.CMFCorePermissions import RequestReview, \
+ ModifyPortalContent, \
+ ReviewPortalContent
from Products.CMFCore.WorkflowTool import addWorkflowFactory
-
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition
+from AccessControl.Permissions import view, access_contents_information
-p_access = 'Access contents information'
-p_modify = 'Modify portal content'
-p_view = 'View'
-p_review = 'Review portal content'
-p_request = 'Request review'
+p_access = access_contents_information
+p_modify = ModifyPortalContent
+p_view = view
+p_review = ReviewPortalContent
+p_request = RequestReview
r_anon = 'Anonymous'
r_manager = 'Manager'