From 9fbdee6de22c10131c6ac3fff080a5f96e64bb79 Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Fri, 28 Jul 2006 15:19:59 +0000
Subject: [PATCH] 2006-07-20 aurel This routine checks if naming convention is
 respected in all modules. But, now it also looks in all the lisboxes and if
 their list method doesn't end with List, it prints out an error message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8876 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_core/ERP5Site_checkNamingConventions.xml            | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml
index d0b3b2500b..0be9f11e8f 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml
@@ -107,6 +107,11 @@ def checkField(folder, form, field):\n
       error_message += checkTitle(path, \'columns\', title)\n
     for id, title in field.get_value(\'all_columns\'):\n
       error_message += checkTitle(path, \'all_columns\', title)\n
+\n
+    a = field.getListMethodName()\n
+    if (a!= None and not a.endswith(\'List\')):\n
+      if a not in [\'portal_catalog\', \'searchFolder\', \'objectValues\']:\n
+        error_message = "%s : %s : %r Bad Naming Convention\\n" % (path, id, a)\n
   return error_message\n
 \n
 \n
-- 
2.30.9