Commit 28094ef6 authored by Yusei Tahara's avatar Yusei Tahara

* Show all updateable fields in one page.

* Show only avaiable fields in field updating list.
* Improve ERP5Site_getToBeTranslatedMessageListFromPythonScriptListAsPot.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19388 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4fcdbe5
...@@ -103,6 +103,8 @@ c = 0\n ...@@ -103,6 +103,8 @@ c = 0\n
for business_field in business_field_list:\n for business_field in business_field_list:\n
for field, reference in get_field_and_reference_list(business_field):\n for field, reference in get_field_and_reference_list(business_field):\n
term_list = get_term_list(business_field, reference)\n term_list = get_term_list(business_field, reference)\n
if not term_list:\n
continue\n
\n \n
field_path = \'%s/%s/%s\' % (field.aq_parent.aq_parent.getId(),\n field_path = \'%s/%s/%s\' % (field.aq_parent.aq_parent.getId(),\n
field.aq_parent.getId(),\n field.aq_parent.getId(),\n
......
...@@ -418,7 +418,7 @@ ...@@ -418,7 +418,7 @@
</item> </item>
<item> <item>
<key> <string>lines</string> </key> <key> <string>lines</string> </key>
<value> <int>50</int> </value> <value> <int>1000</int> </value>
</item> </item>
<item> <item>
<key> <string>list_action</string> </key> <key> <string>list_action</string> </key>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -78,14 +75,18 @@ def iterate(obj):\n ...@@ -78,14 +75,18 @@ def iterate(obj):\n
\n \n
iterate(context.portal_skins)\n iterate(context.portal_skins)\n
\n \n
FUNC_NAME = \'N_\'\n FUNC_NAME_LIST = (\'N_\',\n
CALL_FUNC_NAME = \'%s(\' % FUNC_NAME\n \'Base_translateString\',\n
\'translateString\',\n
)\n
\n \n
result = {}\n result = {}\n
for i in items:\n for i in items:\n
source = i.body()\n source = i.body()\n
if CALL_FUNC_NAME in source:\n for func_name in FUNC_NAME_LIST:\n
for m in context.Base_getFunctionFirstArgumentValue(FUNC_NAME, source):\n call_func_name = \'%s(\' % func_name\n
if call_func_name in source:\n
for m in context.Base_getFunctionFirstArgumentValue(func_name, source):\n
result[m] = None\n result[m] = None\n
\n \n
for i in result:\n for i in result:\n
...@@ -147,12 +148,13 @@ return printed\n ...@@ -147,12 +148,13 @@ return printed\n
<string>iterate</string> <string>iterate</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>FUNC_NAME</string> <string>FUNC_NAME_LIST</string>
<string>CALL_FUNC_NAME</string>
<string>result</string> <string>result</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>i</string> <string>i</string>
<string>source</string> <string>source</string>
<string>func_name</string>
<string>call_func_name</string>
<string>m</string> <string>m</string>
<string>None</string> <string>None</string>
<string>_write_</string> <string>_write_</string>
......
198 199
\ 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