Commit fb6c08a7 authored by Ivan Tyagov's avatar Ivan Tyagov

'Embedded File' replaces 'File' and 'Image'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96c92076
...@@ -849,11 +849,11 @@ class TestInvoice(TestInvoiceMixin): ...@@ -849,11 +849,11 @@ class TestInvoice(TestInvoiceMixin):
title='Resource',) title='Resource',)
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Client') portal_type='Organisation', title='Client')
client_logo = client.newContent(portal_type='Image', client_logo = client.newContent(portal_type='Embedded File',
id='default_image') id='default_image')
vendor = self.portal.organisation_module.newContent( vendor = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Vendor') portal_type='Organisation', title='Vendor')
vendor_logo = vendor.newContent(portal_type='Image', vendor_logo = vendor.newContent(portal_type='Embedded File',
id='default_image') id='default_image')
self.assertEquals(0, vendor_logo.getSize()) self.assertEquals(0, vendor_logo.getSize())
self.assertEquals(0, vendor.getDefaultImageWidth()) self.assertEquals(0, vendor.getDefaultImageWidth())
...@@ -895,12 +895,12 @@ class TestInvoice(TestInvoiceMixin): ...@@ -895,12 +895,12 @@ class TestInvoice(TestInvoiceMixin):
file_data = FileUpload(__file__, 'rb') file_data = FileUpload(__file__, 'rb')
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Client') portal_type='Organisation', title='Client')
client_logo = client.newContent(portal_type='Image', client_logo = client.newContent(portal_type='Embedded File',
id='default_image', id='default_image',
file=file_data) file=file_data)
vendor = self.portal.organisation_module.newContent( vendor = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Vendor') portal_type='Organisation', title='Vendor')
vendor_logo = vendor.newContent(portal_type='Image', vendor_logo = vendor.newContent(portal_type='Embedded File',
id='default_image', id='default_image',
file=file_data) file=file_data)
......
...@@ -1708,11 +1708,11 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1708,11 +1708,11 @@ class TestInvoice(TestInvoiceMixin):
title='Resource',) title='Resource',)
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Client') portal_type='Organisation', title='Client')
client_logo = client.newContent(portal_type='Image', client_logo = client.newContent(portal_type='Embedded File',
id='default_image') id='default_image')
vendor = self.portal.organisation_module.newContent( vendor = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Vendor') portal_type='Organisation', title='Vendor')
vendor_logo = vendor.newContent(portal_type='Image', vendor_logo = vendor.newContent(portal_type='Embedded File',
id='default_image') id='default_image')
self.assertEquals(0, vendor_logo.getSize()) self.assertEquals(0, vendor_logo.getSize())
self.assertEquals(0, vendor.getDefaultImageWidth()) self.assertEquals(0, vendor.getDefaultImageWidth())
...@@ -1754,12 +1754,12 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1754,12 +1754,12 @@ class TestInvoice(TestInvoiceMixin):
file_data = FileUpload(__file__, 'rb') file_data = FileUpload(__file__, 'rb')
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Client') portal_type='Organisation', title='Client')
client_logo = client.newContent(portal_type='Image', client_logo = client.newContent(portal_type='Embedded File',
id='default_image', id='default_image',
file=file_data) file=file_data)
vendor = self.portal.organisation_module.newContent( vendor = self.portal.organisation_module.newContent(
portal_type='Organisation', title='Vendor') portal_type='Organisation', title='Vendor')
vendor_logo = vendor.newContent(portal_type='Image', vendor_logo = vendor.newContent(portal_type='Embedded File',
id='default_image', id='default_image',
file=file_data) file=file_data)
......
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