diff --git a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/MailHost_reportMessageList.xml b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/MailHost_reportMessageList.xml index 37a32512407240274902939b2fe4a1111617845d..6043fd59951037b7e93c3106889b62aeaf18e91d 100644 --- a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/MailHost_reportMessageList.xml +++ b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/MailHost_reportMessageList.xml @@ -64,12 +64,14 @@ if getattr(context.MailHost, "getMessageList", None) is None:\n return "ERROR: MailHost is not a DummyMailHost"\n \n -for mail in context.MailHost.getMessageList():\n +message_list = context.MailHost.getMessageList()\n +for mail in message_list:\n for part in mail:\n print part\n print "="*79\n print "" \n - \n +\n +print "Total messages: %s" %len(message_list)\n return printed\n </string> </value> </item> @@ -113,9 +115,11 @@ return printed\n <string>_getattr_</string> <string>context</string> <string>None</string> + <string>message_list</string> <string>_getiter_</string> <string>mail</string> <string>part</string> + <string>len</string> </tuple> </value> </item> diff --git a/bt5/erp5_ui_test_core/bt/revision b/bt5/erp5_ui_test_core/bt/revision index 3f10ffe7a4c473619c926cfb1e8d95e726e5a0ec..19c7bdba7b1e9bfe80365a50420a6d538ca503c3 100644 --- a/bt5/erp5_ui_test_core/bt/revision +++ b/bt5/erp5_ui_test_core/bt/revision @@ -1 +1 @@ -15 \ No newline at end of file +16 \ No newline at end of file