Commit 342fb5d8 authored by Jérome Perrin's avatar Jérome Perrin

also make sure that the relation field uses existing listbox in proxy listbox ids

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26614 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04f48c15
...@@ -70,6 +70,11 @@ for field_path, field in context.ZopeFind(\n ...@@ -70,6 +70,11 @@ for field_path, field in context.ZopeFind(\n
\n \n
if not (field.get_value(\'proxy_listbox_ids\') or field.get_value(\'columns\')):\n if not (field.get_value(\'proxy_listbox_ids\') or field.get_value(\'columns\')):\n
print field_path\n print field_path\n
continue\n
\n
for path, name in field.get_value(\'proxy_listbox_ids\'):\n
if context.restrictedTraverse(path, None) is None:\n
print \' PROBLEM: field %s uses an invalid form for %s: %s\' % (field_path, name, path)\n
\n \n
return printed\n return printed\n
</string> </value> </string> </value>
...@@ -119,6 +124,8 @@ return printed\n ...@@ -119,6 +124,8 @@ return printed\n
<string>template_field</string> <string>template_field</string>
<string>None</string> <string>None</string>
<string>form</string> <string>form</string>
<string>path</string>
<string>name</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
456 457
\ No newline at end of file \ No newline at end of file
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