[future_trunk] import all partners broken

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

Bug Description

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 296, in sync_partner
    attr_conn = referential.external_connection(DEBUG)
  File "/usr/local/openerp/openerp-server/openerp/osv/orm.py", line 368, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/usr/local/openerp/addons/base_external_referentials/decorator.py", line 45, in wrapped
    return func(self, cr, uid, argument, *args, **kwargs)
  File "/usr/local/openerp/addons/magentoerpconnect/magerp_core.py", line 87, in external_connection
    return attr_conn.connect() and attr_conn or False
  File "/usr/local/openerp/addons/magentoerpconnect/magerp_osv.py", line 160, in connect
    self.logger.info(_("Attempting connection with Settings:%s,%s,%s") % (self.location, self.username, self.password))
AttributeError: 'bool' object has no attribute 'info'
2012-05-06 05:12:42,054 30813 ERROR ? openerp.netsvc: 'bool' object has no attribute 'info'

Related branches

Kyle Waid (midwest)
Changed in magentoerpconnect:
status: New → Confirmed
assignee: nobody → gekko tek (gekkotek)
Changed in magentoerpconnect:
status: Confirmed → In Progress
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : Re: [Bug 995351] Re: [future_trunk] import all partners broken

Hey,

Very happy to see new contributors on this project!

By the way, as you're working on the import of partners, I just want to
notice that the improved implementation of the adresses synchronization [1]
still needs to be ported on the "future" branch.

Thanks for your work.

Guewen

[1]
http://bazaar.launchpad.net/~magentoerpconnect-core-editors/magentoerpconnect/trunk_version/revision/586
Le 18 mai 2012 11:45, "Serpent Consulting Services" <
<email address hidden>> a écrit :

> ** Changed in: magentoerpconnect
> Status: Confirmed => In Progress
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Project Group.
> https://bugs.launchpad.net/bugs/995351
>
> Title:
> [future_trunk] import all partners broken
>
> Status in Magento OpenERP Connector:
> In Progress
>
> Bug description:
> 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
> 296, in sync_partner
> attr_conn = referential.external_connection(DEBUG)
> File "/usr/local/openerp/openerp-server/openerp/osv/orm.py", line 368,
> in function_proxy
> return attr(self._cr, self._uid, [self._id], *args, **kwargs)
> File
> "/usr/local/openerp/addons/base_external_referentials/decorator.py", line
> 45, in wrapped
> return func(self, cr, uid, argument, *args, **kwargs)
> File "/usr/local/openerp/addons/magentoerpconnect/magerp_core.py", line
> 87, in external_connection
> return attr_conn.connect() and attr_conn or False
> File "/usr/local/openerp/addons/magentoerpconnect/magerp_osv.py", line
> 160, in connect
> self.logger.info(_("Attempting connection with Settings:%s,%s,%s") %
> (self.location, self.username, self.password))
> AttributeError: 'bool' object has no attribute 'info'
> 2012-05-06 05:12:42,054 30813 ERROR ? openerp.netsvc: 'bool' object has
> no attribute 'info'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/magentoerpconnect/+bug/995351/+subscriptions
>

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

Guewen we merged the logging fix but there appears to be some new error. I will not work on this anymore, we will wait for you to port over the trunk partners refactoring in the branch above. Thanks

Changed in magentoerpconnect:
assignee: gekko tek (gekkotek) → nobody
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

The new error will be a new bug report. Marking this one as fixed.

Changed in magentoerpconnect:
status: In Progress → Fix Committed
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.