[Erp5-report] r26597 - /erp5/trunk/products/ERP5/Document/Movement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 22 17:59:26 CEST 2009
Author: jp
Date: Wed Apr 22 17:59:25 2009
New Revision: 26597
URL: http://svn.erp5.org?rev=26597&view=rev
Log:
Added code (for information) of future implementation
Modified:
erp5/trunk/products/ERP5/Document/Movement.py
Modified: erp5/trunk/products/ERP5/Document/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Movement.py?rev=26597&r1=26596&r2=26597&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py [utf8] Wed Apr 22 17:59:25 2009
@@ -501,6 +501,11 @@
if self._baseIsFrozen() == 0:
self._baseSetFrozen(None)
return self._baseGetFrozen() or 0
+ # Future implementation - for information
+ path = self.getCausalityValue()
+ if path is not None:
+ return self.getSimulationState() in path.getCompletedSimulationStateList()
+ return False
security.declareProtected( Permissions.AccessContentsInformation,
'getExplanation')
More information about the Erp5-report
mailing list