Commit d49c859a authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: image_to_{bmp,pcx} have already been migrated but the...

ZODB Components: image_to_{bmp,pcx} have already been migrated but the filesystem modules still existed.

You may have to either restart your instance or call portal_transforms/manage_reloadAllTransforms
for this change to take effect.
parent a93ea5f1
Pipeline #6636 failed with stage
in 0 seconds
......@@ -64,7 +64,7 @@
</item>
<item>
<key> <string>module</string> </key>
<value> <string>Products.PortalTransforms.transforms.image_to_bmp</string> </value>
<value> <string>erp5.component.document.TransformImageToBmp</string> </value>
</item>
<item>
<key> <string>output</string> </key>
......
......@@ -64,7 +64,7 @@
</item>
<item>
<key> <string>module</string> </key>
<value> <string>Products.PortalTransforms.transforms.image_to_pcx</string> </value>
<value> <string>erp5.component.document.TransformImageToPcx</string> </value>
</item>
<item>
<key> <string>output</string> </key>
......
......@@ -18641,7 +18641,7 @@
</item>
<item>
<key> <string>module</string> </key>
<value> <string>Products.PortalTransforms.transforms.image_to_pcx</string> </value>
<value> <string>erp5.component.document.TransformImageToPcx</string> </value>
</item>
<item>
<key> <string>output</string> </key>
......@@ -18953,7 +18953,7 @@
</item>
<item>
<key> <string>module</string> </key>
<value> <string>Products.PortalTransforms.transforms.image_to_bmp</string> </value>
<value> <string>erp5.component.document.TransformImageToBmp</string> </value>
</item>
<item>
<key> <string>output</string> </key>
......
......@@ -6,10 +6,10 @@ from Products.PortalTransforms.tests.utils import input_file_path, normalize_htm
from Products.PortalTransforms.transforms.image_to_gif import image_to_gif
from Products.PortalTransforms.transforms.image_to_png import image_to_png
from Products.PortalTransforms.transforms.image_to_jpeg import image_to_jpeg
from Products.PortalTransforms.transforms.image_to_bmp import image_to_bmp
from erp5.component.document.TransformImageToBmp import image_to_bmp
from Products.PortalTransforms.transforms.image_to_tiff import image_to_tiff
from Products.PortalTransforms.transforms.image_to_ppm import image_to_ppm
from Products.PortalTransforms.transforms.image_to_pcx import image_to_pcx
from erp5.component.document.TransformImageToPcx import image_to_pcx
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
# we have to set locale because lynx output is locale sensitive !
......
......@@ -12,10 +12,10 @@ from Products.PortalTransforms.libtransforms.utils import MissingBinary
from Products.PortalTransforms.transforms.image_to_gif import image_to_gif
from Products.PortalTransforms.transforms.image_to_png import image_to_png
from Products.PortalTransforms.transforms.image_to_jpeg import image_to_jpeg
from Products.PortalTransforms.transforms.image_to_bmp import image_to_bmp
from erp5.component.document.TransformImageToBmp import image_to_bmp
from Products.PortalTransforms.transforms.image_to_tiff import image_to_tiff
from Products.PortalTransforms.transforms.image_to_ppm import image_to_ppm
from Products.PortalTransforms.transforms.image_to_pcx import image_to_pcx
from erp5.component.document.TransformImageToPcx import image_to_pcx
from Products.PortalTransforms.transforms.textile_to_html import HAS_TEXTILE
from Products.PortalTransforms.transforms.markdown_to_html import HAS_MARKDOWN
......@@ -165,7 +165,7 @@ TRANSFORMS_TESTINFO = (
('Products.PortalTransforms.transforms.safe_html',
"test_safehtml.html", "test_safe.html", None, 0
),
('Products.PortalTransforms.transforms.image_to_bmp',
('erp5.component.document.TransformImageToBmp',
"logo.jpg", "logo.bmp", None, 0
),
('Products.PortalTransforms.transforms.image_to_gif',
......@@ -183,7 +183,7 @@ TRANSFORMS_TESTINFO = (
('Products.PortalTransforms.transforms.image_to_tiff',
"logo.png", "logo.tiff", None, 0
),
('Products.PortalTransforms.transforms.image_to_pcx',
('erp5.component.document.TransformImageToPcx',
"logo.png", "logo.pcx", None, 0
),
)
......
......@@ -33,10 +33,8 @@ modules = [
'image_to_png', # transforms any image to a PNG image
'image_to_gif', # transforms any image to a GIF image
'image_to_jpeg', # transforms any image to a JPEG image
'image_to_pcx', # transforms any image to a PCX image
'image_to_ppm', # transforms any image to a PPM image
'image_to_tiff', # transforms any image to a TIFF image
'image_to_bmp', # transforms any image to a BMP image
'lynx_dump', # lynx -dump
'w3m_dump',
'python', # python source files, no dependancies
......
from Products.PortalTransforms.libtransforms.imagemagick_transform import ImageMagickTransforms
class image_to_bmp(ImageMagickTransforms):
__name__ = "image_to_bmp"
inputs = ('image/*', )
output = 'image/x-ms-bmp'
format = 'bmp'
def register():
return image_to_bmp()
from Products.PortalTransforms.libtransforms.imagemagick_transform import ImageMagickTransforms
class image_to_pcx(ImageMagickTransforms):
__name__ = "image_to_pcx"
inputs = ('image/*', )
output = 'image/pcx'
format = 'pcx'
def register():
return image_to_pcx()
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