[Erp5-report] r26532 - in /erp5/trunk/products/ERP5OOo/tests: ./ test_document/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 21 04:18:06 CEST 2009


Author: tatuya
Date: Tue Apr 21 04:18:03 2009
New Revision: 26532

URL: http://svn.erp5.org?rev=26532&view=rev
Log:
- remove wrong comments about Report.py 
  and fix the test

Modified:
    erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py
    erp5/trunk/products/ERP5OOo/tests/test_document/Foo_002.odt

Modified: erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py?rev=26532&r1=26531&r2=26532&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py [utf8] Tue Apr 21 04:18:03 2009
@@ -597,10 +597,8 @@
 
     erp5form.addERP5Form(id='Foo2_view', title='Foo2')
     foo2_view = custom.Foo2_view
-    # Attention: Report.py popReport, pushReport
-    # only accepts named 'listbox' Listbox
-    foo2_view.manage_addField('listbox', 'listbox', 'ListBox')
-    listbox = foo2_view.listbox
+    foo2_view.manage_addField('listbox_report', 'listbox report', 'ListBox')
+    listbox = foo2_view.listbox_report
 
     createZODBPythonScript(
       self.portal.portal_skins.custom,
@@ -615,6 +613,7 @@
       )
     message = listbox.ListBox_setPropertyList(
       field_list_method = 'FooReport_getFooList',
+      field_selection_name = 'listbox_report_selection',
       field_portal_types = 'Foo Line | Foo Line',
       field_columns = 'id|ID\ntitle|Title\nquantity|Quantity\nstart_date|Date',)
     self.failUnless('Set Successfully' in message)
@@ -627,9 +626,11 @@
 
 r1 = ReportSection(path=context.getPhysicalPath(),
                    form_id='Foo2_view',
+                   selection_name='listbox_report_selection',
                    selection_params={'title':'foo_04_Iteration_1'})
 r2 = ReportSection(path=context.getPhysicalPath(),
                    form_id='Foo2_view',
+                   selection_name='listbox_report_selection',
                    selection_params={'title':'foo_04_Iteration_2'})
 report_section_list = [r1, r2]
 return report_section_list

Modified: erp5/trunk/products/ERP5OOo/tests/test_document/Foo_002.odt
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/test_document/Foo_002.odt?rev=26532&r1=26531&r2=26532&view=diff
==============================================================================
Binary files - no diff available.




More information about the Erp5-report mailing list