Aitzol Naberan Burga�a wrote:
I get two errors:
First creating the bmp image at Products.CPSSchemas.BasicWidgets. The content is created, but I can't see it.


Second accesing to the container that has the image at CPSDefault/skins/cps_default/getImgTag.

Both errors are created by the same code line height=int(getattr(image,'height',0)). This sentence doesn't return anything, so the none to int coversion fails. Searching in the repository the image doesn't has defined width and height properties. If I define theese values (from the ZMI) the problem is solved.

This comes from a Zope limitation. Zope doesn't seem to detect the dimensions of BMP images. I have just committed a fix in CPS's CVS to workaround this limitation though.


Anyway, you should better use png files instead of BMP files.

Best,

++
        Olivier
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to