From 719030f7a9baea4f99bf38cf141ca22c6f825e0a Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sun, 8 Feb 2004 17:26:03 +0000 Subject: [PATCH] addPermission changed to addPortalContent fixed Solanes typo isFrozen method added (no use at this point) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@413 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/SimulationMovement.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py index 995b8643df..4e2baa82e6 100755 --- a/product/ERP5/Document/SimulationMovement.py +++ b/product/ERP5/Document/SimulationMovement.py @@ -1,7 +1,7 @@ ############################################################################## # # Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. -# Jean-Paul Smets-Solane <jp@nexedi.com> +# Jean-Paul Smets-Solanes <jp@nexedi.com> # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential @@ -91,7 +91,7 @@ class SimulationMovement(Movement): """ meta_type = 'ERP5 Simulation Movement' portal_type = 'Simulation Movement' - add_permission = Permissions.AddERP5Content + add_permission = Permissions.AddPortalContent isPortalContent = 1 isRADContent = 1 isMovement = 1 @@ -405,3 +405,12 @@ a service in a public administration).""" return ra else: return self.getDeliveryValue() + + def isFrozen(self): + """ + A frozen simulation movement can not change its target anylonger + + Also, once a movement is frozen, we do not calculate anylonger + its direct consequences. (ex. we do not calculate again a transformation) + """ + return 0 -- 2.30.9