Commit 90bbff48 authored by Alexandre Boeglin's avatar Alexandre Boeglin

fix searchFolder parameter (rename "language" to "language_id").

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20862 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11452595
......@@ -107,6 +107,12 @@ context.Base_redirect(keep_items={\'portal_status_message\':portal_status_messag
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>language</string> </value>
......
......@@ -79,7 +79,7 @@ else:\n
portal_catalog = context.portal_catalog\n
for i in result:\n
item_list = portal_catalog(portal_type=\'Glossary Term\',\n
reference=i[\'reference\'], language=i[\'language\'],\n
reference=i[\'reference\'], language_id=i[\'language\'],\n
business_field_title=i[\'business_field\'],\n
validation_state="!=deleted")\n
if len(item_list)>0:\n
......@@ -111,6 +111,12 @@ context.Base_redirect(keep_items={\'portal_status_message\':portal_status_messag
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>property_sheet_list, export_tsv=False, REQUEST=None, **kw</string> </value>
......
......@@ -79,7 +79,7 @@ else:\n
portal_catalog = context.portal_catalog\n
for i in result:\n
item_list = portal_catalog(portal_type=\'Glossary Term\',\n
reference=i[\'reference\'], language=i[\'language\'],\n
reference=i[\'reference\'], language_id=i[\'language\'],\n
business_field_title=i[\'business_field\'],\n
validation_state="!=deleted")\n
if len(item_list)>0:\n
......
......@@ -80,6 +80,12 @@
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain, **kw</string> </value>
......
......@@ -82,6 +82,12 @@
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
......
......@@ -84,14 +84,14 @@ catalog = context.portal_catalog\n
for i in catalog(portal_type=\'Glossary Term\',\n
validation_state=\'validated\',\n
business_field_title=business_field_list,\n
language=language):\n
language_id=language):\n
term = i.getObject()\n
reference = term.getReference()\n
business_field = term.getBusinessField()\n
\n
english_term = catalog.getResultValue(portal_type=\'Glossary Term\',\n
validation_state=\'validated\',\n
language=\'en\',\n
language_id=\'en\',\n
reference=reference,\n
business_field_title=business_field)\n
if english_term is None:\n
......@@ -138,6 +138,12 @@ return printed\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>business_field_list, language, **kw</string> </value>
......
......@@ -80,6 +80,12 @@
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
......
......@@ -127,6 +127,12 @@ return result\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>property_sheet_list</string> </value>
......
......@@ -100,6 +100,12 @@ context.Base_redirect(keep_items={\'portal_status_message\':portal_status_messag
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
......
......@@ -50,6 +50,12 @@
<key> <string>description</string> </key>
<value> <string>You can update existing field\'s title and description by english glossary.</string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
......
225
\ No newline at end of file
227
\ 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