[Erp5-report] r32768 vincent - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tes...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 18 13:26:50 CET 2010
Author: vincent
Date: Thu Feb 18 13:26:49 2010
New Revision: 32768
URL: http://svn.erp5.org?rev=32768&view=rev
Log:
Make Base_addUITestTranslation reusable.
Modified:
erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testDialogButtonTranslated.xml
erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_addUITestTranslation.xml
erp5/trunk/bt5/erp5_ui_test/bt/revision
Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testDialogButtonTranslated.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testDialogButtonTranslated.xml?rev=32768&r1=32767&r2=32768&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testDialogButtonTranslated.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testDialogButtonTranslated.xml [utf8] Thu Feb 18 13:26:49 2010
@@ -65,18 +65,18 @@
<td>New Languages Added</td>\n
<td></td>\n
</tr>\n
-<tr>\n
-\n
- <td>open</td>\n
- <td tal:content="string: ${here/portal_url}/portal_skins/erp5_ui_test//Base_addUITestTranslation?message=Search Foos&translation_1=Seet Foos&translation_2=Searching Foos"></td>\n
- <td></td>\n
-</tr>\n
-<tr>\n
- <td>assertTextPresent</td>\n
- <td>Translation of Search Foos updated</td>\n
- <td></td>\n
-</tr>\n
-\n
+<tal:block tal:repeat="param_dict python: [{\'translation\': \'Seet Foos\', \'language\': \'wo\'}, {\'translation\': \'Searching Foos\', \'language\': \'xh\'}]">\n
+ <tr tal:define="dummy python: param_dict.update({\'root\': here.portal_url()})">\n
+ <td>open</td>\n
+ <td tal:content="python: \'%(root)s/portal_skins/erp5_ui_test/Base_addUITestTranslation?message=Search Foos&translation=%(translation)s&language=%(language)s\' % param_dict"></td>\n
+ <td></td>\n
+ </tr>\n
+ <tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Translation of Search Foos updated</td>\n
+ <td></td>\n
+ </tr>\n
+</tal:block>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo%20Module/PortalType_deleteAction?id=search2&name=Search2&category=object_search&action=string:%24{object_url}/FooModule_viewSearchDialog">Create a second dummy search action to test the dynamic creation of select action drop-down list</td>\n
Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_addUITestTranslation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_addUITestTranslation.xml?rev=32768&r1=32767&r2=32768&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_addUITestTranslation.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_addUITestTranslation.xml [utf8] Thu Feb 18 13:26:49 2010
@@ -53,14 +53,9 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>"""Add a New Test language."""\n
-context.getPortalObject().Localizer.erp5_ui.gettext(\'Search Foos\')\n
-\n
-context.getPortalObject().Localizer.erp5_ui.message_edit(message=\'Search Foos\', language=\'wo\', translation=\'Seet Foos\',note=None)\n
-context.getPortalObject().Localizer.erp5_ui.message_edit(message=\'Search Foos\', language=\'xh\', translation=\'Searching Foos\',note=None)\n
-\n
-original_message = "Search Foos"\n
-return "Translation of %s updated" % (original_message, )\n
+ <value> <string>context.getPortalObject().Localizer.erp5_ui.gettext(message)\n
+context.getPortalObject().Localizer.erp5_ui.message_edit(message=message, language=language, translation=translation, note=None)\n
+return "Translation of %s updated" % (message, )\n
</string> </value>
</item>
<item>
@@ -71,7 +66,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>message = "Search Foos",translation_1 =" Seet Foos",translation_2="Searching Foos"</string> </value>
+ <value> <string>message, translation, language</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -98,12 +93,11 @@
<value>
<tuple>
<string>message</string>
- <string>translation_1</string>
- <string>translation_2</string>
+ <string>translation</string>
+ <string>language</string>
<string>_getattr_</string>
<string>context</string>
<string>None</string>
- <string>original_message</string>
</tuple>
</value>
</item>
@@ -115,11 +109,7 @@
<item>
<key> <string>func_defaults</string> </key>
<value>
- <tuple>
- <string>Search Foos</string>
- <string> Seet Foos</string>
- <string>Searching Foos</string>
- </tuple>
+ <none/>
</value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=32768&r1=32767&r2=32768&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] Thu Feb 18 13:26:49 2010
@@ -1,1 +1,1 @@
-528
+529
More information about the Erp5-report
mailing list