[Erp5-report] r17998 - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 4 13:33:19 CET 2007


Author: jerome
Date: Tue Dec  4 13:33:15 2007
New Revision: 17998

URL: http://svn.erp5.org?rev=17998&view=rev
Log:
document updateRoleMappingsFor: the caller must check that workflow is chained
to the portal type.

Modified:
    erp5/trunk/products/ERP5Type/Base.py

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=17998&r1=17997&r2=17998&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Tue Dec  4 13:33:15 2007
@@ -3115,6 +3115,9 @@
   def updateRoleMappingsFor(self, wf_id, **kw):
     """
     Update security policy according to workflow settings given by wf_id
+      
+    There's no check that the document is actually chained to the workflow,
+    it's caller responsability to perform this check.
     """
     workflow = self.portal_workflow.getWorkflowById(wf_id)
     if workflow is not None:




More information about the Erp5-report mailing list