← Back to team overview

openerp-community team mailing list archive

lp:~akretion-team/openerp-product-attributes/openerp-product-attrs-image-char-fix into lp:openerp-product-attributes

 

Raphaël Valyi - http://www.akretion.com has proposed merging lp:~akretion-team/openerp-product-attributes/openerp-product-attrs-image-char-fix into lp:openerp-product-attributes.

Requested reviews:
  Product Core Editors (product-core-editors)
Related bugs:
  Bug #1197996 in OpenERP Product Attributes: "[product_images] uploading an images with an accentuated name -> UnicodeEncodeError: 'ascii' codec can't encode character "
  https://bugs.launchpad.net/openerp-product-attributes/+bug/1197996

For more details, see:
https://code.launchpad.net/~akretion-team/openerp-product-attributes/openerp-product-attrs-image-char-fix/+merge/173108

trivial fix for https://bugs.launchpad.net/openerp-product-attributes/+bug/1197996
(tested)
-- 
https://code.launchpad.net/~akretion-team/openerp-product-attributes/openerp-product-attrs-image-char-fix/+merge/173108
Your team OpenERP Community is subscribed to branch lp:openerp-product-attributes.
=== modified file 'product_images/product_images.py'
--- product_images/product_images.py	2013-02-11 22:52:23 +0000
+++ product_images/product_images.py	2013-07-04 23:16:23 +0000
@@ -91,7 +91,7 @@
                 local_media_repository,
                 image.product_id.default_code,
                 '%s%s' % (image.name or '', image.extension or ''))
-        return full_path
+        return full_path.encode('utf-8')
 
     def get_image(self, cr, uid, id, context=None):
         image = self.browse(cr, uid, id, context=context)


Follow ups