Commit 9fbdee6d authored by Kevin Deldycke's avatar Kevin Deldycke

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
parent dd34b11d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment