← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 754455] [NEW] When updating the images, if a file is missing, updating stop without notifying which file is missing

 

Public bug reported:

Hello,

The update image process works well but when a file is missing, the error doesn't display which product / product.image is missing.
So it is really hard to find the error.

Can someone tells me where I should add the code to display something like
Product Id : 1234 - Image file is missing

Here is the log. 
For info : 
Fault 104: "L'image n'existe pas." means "The picture doesn't exist"


Thank you for your help.
I really like this connector :)


  File "/opt/my-extra-6.0/magentoerpconnect/sale.py", line 75, in export_images
    image_obj.update_remote_images(cr, uid, res['to_update']+res['to_create'], context)
  File "/opt/my-extra-6.0/magentoerpconnect/product_images.py", line 179, in update_remote_images
    'mime':each.filename and mimetypes.guess_type(each.filename)[0] or 'image/jpeg',
  File "/opt/my-extra-6.0/magentoerpconnect/magerp_osv.py", line 53, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 104: "L'image n'existe pas.">

** Affects: magentoerpconnect
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/754455

Title:
  When updating the images, if a file is missing, updating stop without
  notifying which file is missing

Status in Magento Open ERP Connector:
  New

Bug description:
  Hello,

  The update image process works well but when a file is missing, the error doesn't display which product / product.image is missing.
  So it is really hard to find the error.

  Can someone tells me where I should add the code to display something like
  Product Id : 1234 - Image file is missing

  Here is the log. 
  For info : 
  Fault 104: "L'image n'existe pas." means "The picture doesn't exist"

  
  Thank you for your help.
  I really like this connector :)

  
    File "/opt/my-extra-6.0/magentoerpconnect/sale.py", line 75, in export_images
      image_obj.update_remote_images(cr, uid, res['to_update']+res['to_create'], context)
    File "/opt/my-extra-6.0/magentoerpconnect/product_images.py", line 179, in update_remote_images
      'mime':each.filename and mimetypes.guess_type(each.filename)[0] or 'image/jpeg',
    File "/opt/my-extra-6.0/magentoerpconnect/magerp_osv.py", line 53, in call
      res = self.ser.call(self.session, method, arguments)
    File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
      return self.__send(self.__name, args)
    File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
      verbose=self.__verbose
    File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
      return self._parse_response(h.getfile(), sock)
    File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
      return u.close()
    File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
      raise Fault(**self._stack[0])
  Fault: <Fault 104: "L'image n'existe pas.">



Follow ups

References