Commit 78fd5129 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

support translation of causality portal type in Support Request.

parent 5e40f8e7
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
portal_type_list = portal.getPortalEventTypeList()\n portal_type_list = portal.getPortalEventTypeList()\n
portal_types = portal.portal_types\n portal_types = portal.portal_types\n
translateString = portal.Base_translateString\n
domain_list = []\n domain_list = []\n
\n \n
domain_list_append = domain_list.append\n domain_list_append = domain_list.append\n
...@@ -61,7 +62,7 @@ domain_list_append = domain_list.append\n ...@@ -61,7 +62,7 @@ domain_list_append = domain_list.append\n
if depth == 0:\n if depth == 0:\n
for uid, portal_type in enumerate(portal_type_list):\n for uid, portal_type in enumerate(portal_type_list):\n
domain = parent.generateTempDomain(id=\'%s_%s\' % (depth, uid))\n domain = parent.generateTempDomain(id=\'%s_%s\' % (depth, uid))\n
domain.edit(title=portal_types[portal_type].getTranslatedTitle(),\n domain.edit(title=translateString(portal_types[portal_type].getId()),\n
domain_generator_method_id=script.id,\n domain_generator_method_id=script.id,\n
uid=uid)\n uid=uid)\n
domain.setCriterion(property=\'causality_portal_type\', identity=portal_type)\n domain.setCriterion(property=\'causality_portal_type\', identity=portal_type)\n
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<string>your_dialog_mode_single_event</string> <string>your_dialog_mode_single_event</string>
<string>your_dialog_mode_follow_up</string> <string>your_dialog_mode_follow_up</string>
<string>my_dialog_mode_direction</string> <string>my_dialog_mode_direction</string>
<string>my_causality_portal_type</string> <string>my_causality_translated_portal_type</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_causality_portal_type</string> </value> <value> <string>my_causality_translated_portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:getattr(here.getCausalityValue(), \'getPortalType\', lambda:None)()</string> </value> <value> <string>python:getattr(here.getCausalityValue(), \'getTranslatedPortalType\', lambda:None)()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<string>listbox_delivery_start_date</string> <string>listbox_delivery_start_date</string>
<string>listbox_delivery_stop_date</string> <string>listbox_delivery_stop_date</string>
<string>listbox_destination_decision_language</string> <string>listbox_destination_decision_language</string>
<string>listbox_causality_portal_type</string> <string>listbox_causality_translated_portal_type</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_causality_portal_type</string> </value> <value> <string>listbox_causality_translated_portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:getattr(cell.getCausalityValue(), \'getPortalType\', lambda:None)()</string> </value> <value> <string>python:getattr(cell.getCausalityValue(), \'getTranslatedPortalType\', lambda:None)()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<string>my_destination_decision_title</string> <string>my_destination_decision_title</string>
<string>my_destination_project_title</string> <string>my_destination_project_title</string>
<string>my_causality_title</string> <string>my_causality_title</string>
<string>my_causality_portal_type</string> <string>my_causality_translated_portal_type</string>
<string>my_source_section_title</string> <string>my_source_section_title</string>
<string>my_source_decision_title</string> <string>my_source_decision_title</string>
<string>my_source_title</string> <string>my_source_title</string>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_causality_portal_type</string> </value> <value> <string>my_causality_translated_portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_causality_portal_type</string> </value> <value> <string>my_causality_translated_portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
......
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