[future_trunk] import product with links

Bug #992750 reported by Kyle Waid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Fix Released
Undecided
Unassigned

Bug Description

Server Traceback (most recent call last):
  File "/usr/local/openerp/web/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/local/openerp/openerp-server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/local/openerp/openerp-server/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/openerp/addons/magentoerpconnect/magerp_core.py", line 234, in sync_products
    prod_obj.mag_import_product_links_types(import_cr, uid, produ ct_id, link_types, referential.id, attr_conn, context=context)
TypeError: mag_import_product_links_types() got multiple values for keyword argument 'context'

Traceback (most recent call last):
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/openerp/addons/magentoerpconnect/magerp_core.py", line 234, in sync_products
    prod_obj.mag_import_product_links_types(import_cr, uid, product_id, link_types, referential.id, attr_conn, context=context)
TypeError: mag_import_product_links_types() got multiple values for keyword argument 'context'
2012-05-01 17:46:16,684 26851 ERROR ? openerp.netsvc: mag_import_product_links_types() got multiple values for keyword argument 'context'

Revision history for this message
Kyle Waid (midwest) wrote :

This is still not working, to reproduce use latest source and attempt import of products with links box checked

Kyle Waid (midwest)
Changed in magentoerpconnect:
assignee: nobody → gekko tek (gekkotek)
Changed in magentoerpconnect:
status: New → Confirmed
Changed in magentoerpconnect:
status: Confirmed → In Progress
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Merge in rev 630. Thank you

Changed in magentoerpconnect:
status: In Progress → Fix Released
Revision history for this message
Kyle Waid (midwest) wrote :

Traceback (most recent call last):
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/openerp/openerp-server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/openerp/community/magentoerpconnect/magentoerpconnect/magerp_core.py", line 230, in sync_products
    prod_obj.mag_import_product_links_types(import_cr, uid, product_id, link_types, external_session, context=context)
  File "/usr/local/openerp/community/magentoerpconnect/magentoerpconnect/product.py", line 1539, in mag_import_product_links_types
    self._mag_import_product_links_type(cr, uid, product, link_type, external_session, context=context)
  File "/usr/local/openerp/community/magentoerpconnect/magentoerpconnect/product.py", line 1497, in _mag_import_product_links_type
    selection_link_types = product_link_obj._columns['type'].selection(cr, uid, context)
  File "/usr/local/openerp/e-commerce-addons/product_links/product_links.py", line 32, in _get_link_type_selection
    return self.get_link_type_selection(cr, uid, context=context)
  File "/usr/local/openerp/openerp-server/openerp/sql_db.py", line 152, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/local/openerp/openerp-server/openerp/sql_db.py", line 341, in __getattr__
    return getattr(self._obj, name)
AttributeError: 'cursor' object has no attribute 'get_link_type_selection'

Changed in magentoerpconnect:
status: Fix Released → New
Changed in magentoerpconnect:
status: New → Confirmed
Changed in magentoerpconnect:
status: Confirmed → In Progress
Changed in magentoerpconnect:
status: In Progress → Fix Committed
Kyle Waid (midwest)
Changed in magentoerpconnect:
assignee: gekko tek (gekkotek) → nobody
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Merge in revision no. 644.

Thanks,

Changed in magentoerpconnect:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.