From 6ab3e4d474f60901cf9d5d5c9812d7f2fbdcf871 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 9 Mar 2006 10:43:52 +0000 Subject: [PATCH] Test if a object is None with the keyword is (and not ==). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6053 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/SelectionTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index e9a57592ed..9ffac67208 100755 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -999,7 +999,7 @@ class SelectionTool( UniqueObject, SimpleItem ): selection_name = 'Base_viewRelatedObjectList' # reselt current selection - self.portal_selections.setSelectionFor( selection_name, None) + self.portal_selections.setSelectionFor(selection_name, None) # XXX portal_status_message = # "Please select one object to precise the value: @@ -1007,7 +1007,7 @@ class SelectionTool( UniqueObject, SimpleItem ): portal_status_message = "Please select one object." if field.meta_type == "MultiRelationStringField": - if sub_index == None: + if sub_index is None: # user click on the wheel, not on the validation button # we need to facilitate user search -- 2.30.9