[Erp5-report] r27969 - /erp5/trunk/products/ERP5/Document/SimulationMovement.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jul 6 12:46:49 CEST 2009


Author: luke
Date: Mon Jul  6 12:46:48 2009
New Revision: 27969

URL: http://svn.erp5.org?rev=27969&view=rev
Log:
 - implement isCompleted for BPM related Simulation Movement

Modified:
    erp5/trunk/products/ERP5/Document/SimulationMovement.py

Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=27969&r1=27968&r2=27969&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Mon Jul  6 12:46:48 2009
@@ -188,6 +188,14 @@
     # nothing better to return.
     return self.getSimulationState()
 
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'isCompleted')
+  def isCompleted(self):
+    """Zope publisher docstring. Documentation in ISimulationMovement"""
+    # only available in BPM, so fail totally in case of working without BPM
+    return self.getSimulationState() in self.getCausalityValue(
+        portal_type='Business Path').getCompletedStateList()
+
   security.declareProtected( Permissions.AccessContentsInformation,
                             'isAccountable')
   def isAccountable(self):




More information about the Erp5-report mailing list