[Erp5-report] r43624 nicolas - in /erp5/trunk/products/ERP5Type: ./ patches/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 23 17:35:16 CET 2011


Author: nicolas
Date: Wed Feb 23 17:35:15 2011
New Revision: 43624

URL: http://svn.erp5.org?rev=43624&view=rev
Log:
Allow manager to rename Worklists
(This monkey patch will be under review by DCWorkflow maintainers)

Added:
    erp5/trunk/products/ERP5Type/patches/Worklists.py
Modified:
    erp5/trunk/products/ERP5Type/ZopePatch.py

Modified: erp5/trunk/products/ERP5Type/ZopePatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ZopePatch.py?rev=43624&r1=43623&r2=43624&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ZopePatch.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ZopePatch.py [utf8] Wed Feb 23 17:35:15 2011
@@ -28,6 +28,7 @@ from Products.ERP5Type.patches import Pr
 from Products.ERP5Type.patches import TM
 from Products.ERP5Type.patches import DA
 from Products.ERP5Type.patches import DCWorkflow
+from Products.ERP5Type.patches import Worklists
 from Products.ERP5Type.patches import BTreeFolder2
 from Products.ERP5Type.patches import WorkflowTool
 from Products.ERP5Type.patches import XMLExportImport

Added: erp5/trunk/products/ERP5Type/patches/Worklists.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/Worklists.py?rev=43624&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/Worklists.py (added)
+++ erp5/trunk/products/ERP5Type/patches/Worklists.py [utf8] Wed Feb 23 17:35:15 2011
@@ -0,0 +1,8 @@
+from Products.DCWorkflow.Worklists import Worklists
+from Products.DCWorkflow.Worklists import WorklistDefinition
+from Products.ERP5Type.Permissions import ManagePortal
+
+# Allow manager to rename worklists
+for meta_type in Worklists.all_meta_types:
+  if meta_type['name'] == WorklistDefinition.meta_type:
+    meta_type.setdefault('permission', ManagePortal)



More information about the Erp5-report mailing list