From 49c811aeaec9700b48e3a6643ad1213871bdf67c Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Thu, 18 Feb 2010 15:11:46 +0000
Subject: [PATCH] simplify code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32795 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testXHTML.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py
index b699393b97..a27061a6f1 100644
--- a/product/ERP5/tests/testXHTML.py
+++ b/product/ERP5/tests/testXHTML.py
@@ -210,8 +210,7 @@ class TestXHTML(ERP5TypeTestCase):
     for form_path, form in skins_tool.ZopeFind(
               skins_tool, obj_metatypes=['ERP5 Form'], search_sub=1):
       for field in self.getFieldList(form, form_path):
-        if field.meta_type == 'ListBox' or field.meta_type == 'ProxyField' and\
-            field.getRecursiveTemplateField().meta_type == 'ListBox':
+        if field.getRecursiveTemplateField().meta_type == 'ListBox':
           selection_name = field.get_value("selection_name")
           if selection_name in ("",None):
             error_list.append(form_path)
@@ -224,8 +223,7 @@ class TestXHTML(ERP5TypeTestCase):
     for form_path, form in skins_tool.ZopeFind(
               skins_tool, obj_metatypes=['ERP5 Form'], search_sub=1):
       for field in self.getFieldList(form, form_path):
-        if field.meta_type == 'ListBox' or field.meta_type == 'ProxyField' and\
-            field.getRecursiveTemplateField().meta_type == 'ListBox':
+        if field.getRecursiveTemplateField().meta_type == 'ListBox':
           list_method = field.get_value("list_method")
           if list_method:
             if isinstance(list_method, str):
@@ -243,8 +241,7 @@ class TestXHTML(ERP5TypeTestCase):
     for form_path, form in skins_tool.ZopeFind(
               skins_tool, obj_metatypes=['ERP5 Form'], search_sub=1):
       for field in self.getFieldList(form, form_path):
-        if field.meta_type == 'ListBox' or field.meta_type == 'ProxyField' and\
-            field.getRecursiveTemplateField().meta_type == 'ListBox':
+        if field.getRecursiveTemplateField().meta_type == 'ListBox':
           list_action = field.get_value("list_action")
           if list_action and list_action != 'list': # We assume that 'list'
                                                     # list_action exists
-- 
2.30.9