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
for business_field in business_field_list:\n
for field, reference in get_field_and_reference_list(business_field):\n
term_list = get_term_list(business_field, reference)\n
if not term_list:\n
continue\n
\n
field_path = \'%s/%s/%s\' % (field.aq_parent.aq_parent.getId(),\n
field.aq_parent.getId(),\n
......
......@@ -418,7 +418,7 @@
</item>
<item>
<key> <string>lines</string> </key>
<value> <int>50</int> </value>
<value> <int>1000</int> </value>
</item>
<item>
<key> <string>list_action</string> </key>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -78,15 +75,19 @@ def iterate(obj):\n
\n
iterate(context.portal_skins)\n
\n
FUNC_NAME = \'N_\'\n
CALL_FUNC_NAME = \'%s(\' % FUNC_NAME\n
FUNC_NAME_LIST = (\'N_\',\n
\'Base_translateString\',\n
\'translateString\',\n
)\n
\n
result = {}\n
for i in items:\n
source = i.body()\n
if CALL_FUNC_NAME in source:\n
for m in context.Base_getFunctionFirstArgumentValue(FUNC_NAME, source):\n
result[m] = None\n
for func_name in FUNC_NAME_LIST:\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
\n
for i in result:\n
print \'msgid "%s"\' % repr(i)[1:-1]\n
......@@ -147,12 +148,13 @@ return printed\n
<string>iterate</string>
<string>_getattr_</string>
<string>context</string>
<string>FUNC_NAME</string>
<string>CALL_FUNC_NAME</string>
<string>FUNC_NAME_LIST</string>
<string>result</string>
<string>_getiter_</string>
<string>i</string>
<string>source</string>
<string>func_name</string>
<string>call_func_name</string>
<string>m</string>
<string>None</string>
<string>_write_</string>
......
198
\ No newline at end of file
199
\ 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