From 8750027d3782eaca9314b8bd129600af1aedea39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 29 May 2009 14:37:28 +0000
Subject: [PATCH] use field._validate_helper to use external validators defined
 on editable fields

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27255 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ListBox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 8a7a045aa7..43a5552842 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -2572,7 +2572,7 @@ class ListBoxValidator(Validator.Validator):
                 error_result_key = my_field.id + '_%s' % o.uid
                 REQUEST.cell = o
                 try:
-                  value = my_field.validator.validate(my_field, key, REQUEST) # We need cell
+                  value = my_field._validate_helper(key, REQUEST) # We need cell
                   # Here we set the property
                   listbox[uid[4:]][sql] = value
                 except ValidationError, err:
@@ -2614,7 +2614,7 @@ class ListBoxValidator(Validator.Validator):
                   key = 'field_%s_%s' % (my_field.id, o.uid)
                   error_result_key = '%s_%s' % (my_field.id, o.uid)
                   try:
-                    value = my_field.validator.validate(my_field, key, REQUEST) # We need cell
+                    value = my_field._validate_helper(key, REQUEST) # We need cell
                     result[uid[4:]][sql] = value
                   except ValidationError, err:
                     #LOG("ListBox ValidationError",0,str(err))
-- 
2.30.9