From a1496538bf948de23906b5cd075ba135fa557494 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Mon, 14 Apr 2008 15:43:14 +0000 Subject: [PATCH] Added new parameter to round scripts. This is usefull to round that values in a different way for begin and the end of the block. See: http://www.erp5.org/Discussion/DateRange Is required to update erp5_core revision to 792 (r20504) or more. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20505 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/PlanningBox.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5Form/PlanningBox.py b/product/ERP5Form/PlanningBox.py index 843c68b475..40192f2398 100644 --- a/product/ERP5Form/PlanningBox.py +++ b/product/ERP5Form/PlanningBox.py @@ -292,10 +292,11 @@ class PlanningBoxValidator(Validator.StringBaseValidator): (start_value, stop_value) = \ self.getActivityBounds(activity_object, activity_block_moved_list, activity_block_list) + # call specific external method to round value if round_script is not None: - start_value = round_script(start_value) - stop_value = round_script(stop_value) + start_value = round_script(start_value, axis='begin') + stop_value = round_script(stop_value, axis='end') # adding object name to list of objects to update if activity_object.object.getUrl() not in update_list: update_list.append(activity_object.object.getUrl()) -- 2.30.9