[Erp5-report] r42023 ivan - /erp5/trunk/products/ERP5OOo/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 5 12:25:42 CET 2011
Author: ivan
Date: Wed Jan 5 12:25:42 2011
New Revision: 42023
URL: http://svn.erp5.org?rev=42023&view=rev
Log:
'Embedded File' replaces 'File' and 'Image'
Modified:
erp5/trunk/products/ERP5OOo/tests/testFormPrintoutAsODG.py
erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py
Modified: erp5/trunk/products/ERP5OOo/tests/testFormPrintoutAsODG.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testFormPrintoutAsODG.py?rev=42023&r1=42022&r2=42023&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testFormPrintoutAsODG.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testFormPrintoutAsODG.py [utf8] Wed Jan 5 12:25:42 2011
@@ -310,7 +310,7 @@ class TestFormPrintoutAsODG(TestFormPrin
parent_dir = os.path.dirname(current_dir)
image_path = os.path.join(parent_dir, 'www', 'form_printout_icon.png')
file_data = FileUpload(image_path, 'rb')
- image = person1.newContent(portal_type='Image')
+ image = person1.newContent(portal_type='Embedded File')
image.edit(file=file_data)
foo_printout = image.Foo_viewAsODGPrintout
Modified: erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py?rev=42023&r1=42022&r2=42023&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py [utf8] Wed Jan 5 12:25:42 2011
@@ -71,7 +71,7 @@ class TestOOoStyle(ERP5TypeTestCase, Zop
person_module.pers.setCareerRole(None)
if person_module.pers._getOb('img', None) is None:
- person_module.pers.newContent(portal_type='Image', id='img')
+ person_module.pers.newContent(portal_type='Embedded File', id='img')
if person_module._getOb('pers_without_image', None) is None:
person = person_module.newContent(
More information about the Erp5-report
mailing list