[Erp5-report] r8876 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 28 17:20:16 CEST 2006


Author: kevin
Date: Fri Jul 28 17:19:59 2006
New Revision: 8876

URL: http://svn.erp5.org?rev=8876&view=rev
Log:
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

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml?rev=8876&r1=8875&r2=8876&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_checkNamingConventions.xml Fri Jul 28 17:19:59 2006
@@ -107,6 +107,11 @@
       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




More information about the Erp5-report mailing list