[CMF-checkins] CVS: CMF/DCWorkflow - Default.py:1.14

Yvo Schubbe schubbe at web.de
Mon Sep 1 12:18:37 EDT 2003


Update of /cvs-repository/CMF/DCWorkflow
In directory cvs.zope.org:/tmp/cvs-serv30605/DCWorkflow

Modified Files:
	Default.py 
Log Message:
Permissions cleanup

=== CMF/DCWorkflow/Default.py 1.13 => 1.14 ===
--- CMF/DCWorkflow/Default.py:1.13	Thu Oct 17 15:38:37 2002
+++ CMF/DCWorkflow/Default.py	Mon Sep  1 11:18:36 2003
@@ -1,32 +1,33 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Programmatically creates a workflow.
 
 $Id$
 """
 
-from Products.CMFCore.CMFCorePermissions import RequestReview, \
-                                                ModifyPortalContent, \
-                                                ReviewPortalContent
+from Products.CMFCore.CMFCorePermissions import AccessContentsInformation
+from Products.CMFCore.CMFCorePermissions import ModifyPortalContent
+from Products.CMFCore.CMFCorePermissions import RequestReview
+from Products.CMFCore.CMFCorePermissions import ReviewPortalContent
+from Products.CMFCore.CMFCorePermissions import View
 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_access = AccessContentsInformation
 p_modify = ModifyPortalContent
-p_view = view
-p_review = ReviewPortalContent
 p_request = RequestReview
+p_review = ReviewPortalContent
+p_view = View
 
 r_anon = 'Anonymous'
 r_manager = 'Manager'




More information about the CMF-checkins mailing list