openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #07756
[Bug 937280] [NEW] Cannot migrate sugarcrm cases into openerp claims
Public bug reported:
I am using the import_sugarcrm module. I am running a local copy of
openerp 6.1 on Ubuntu 11.4 with python2.7. Sugarcrm is running on
version 5.2.0k.
Based on the tests I did, it looks like the exception occurs when
attempting to port cases to claims.
I get the following error code:
Traceback (most recent call last):
File "/home/michel/openerp61/addons/trunk/import_base/import_framework.py", line 387, in run
(position, warning) = self._import_table(table)
File "/home/michel/openerp61/addons/trunk/import_base/import_framework.py", line 145, in _import_table
data = self.get_data(table)
File "/home/michel/openerp61/addons/trunk/import_sugarcrm/import_sugarcrm.py", line 87, in get_data
r = sugar.search(self.context.get('port'), self.context.get('session_id'), table, offset, self.MAX_RESULT_PER_PAGE)
File "/home/michel/openerp61/addons/trunk/import_sugarcrm/sugar.py", line 174, in search
ans_dir[tools.ustr(j._name)] = import_sugarcrm.unescape_htmlentities(tools.ustr(j._value))
File "/home/michel/openerp61/addons/trunk/import_sugarcrm/import_sugarcrm.py", line 37, in unescape_htmlentities
p.feed(s)
File "/usr/lib/python2.7/sgmllib.py", line 104, in feed
self.goahead(0)
File "/usr/lib/python2.7/sgmllib.py", line 193, in goahead
self.handle_entityref(name)
File "/usr/lib/python2.7/sgmllib.py", line 436, in handle_entityref
self.handle_data(replacement)
File "/usr/lib/python2.7/htmllib.py", line 65, in handle_data
self.savedata = self.savedata + data
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 0: ordinal not in range(128)
If I don't import cases or emails, I can import accounts and contacts.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/937280
Title:
Cannot migrate sugarcrm cases into openerp claims
Status in OpenERP Addons (modules):
New
Bug description:
I am using the import_sugarcrm module. I am running a local copy of
openerp 6.1 on Ubuntu 11.4 with python2.7. Sugarcrm is running on
version 5.2.0k.
Based on the tests I did, it looks like the exception occurs when
attempting to port cases to claims.
I get the following error code:
Traceback (most recent call last):
File "/home/michel/openerp61/addons/trunk/import_base/import_framework.py", line 387, in run
(position, warning) = self._import_table(table)
File "/home/michel/openerp61/addons/trunk/import_base/import_framework.py", line 145, in _import_table
data = self.get_data(table)
File "/home/michel/openerp61/addons/trunk/import_sugarcrm/import_sugarcrm.py", line 87, in get_data
r = sugar.search(self.context.get('port'), self.context.get('session_id'), table, offset, self.MAX_RESULT_PER_PAGE)
File "/home/michel/openerp61/addons/trunk/import_sugarcrm/sugar.py", line 174, in search
ans_dir[tools.ustr(j._name)] = import_sugarcrm.unescape_htmlentities(tools.ustr(j._value))
File "/home/michel/openerp61/addons/trunk/import_sugarcrm/import_sugarcrm.py", line 37, in unescape_htmlentities
p.feed(s)
File "/usr/lib/python2.7/sgmllib.py", line 104, in feed
self.goahead(0)
File "/usr/lib/python2.7/sgmllib.py", line 193, in goahead
self.handle_entityref(name)
File "/usr/lib/python2.7/sgmllib.py", line 436, in handle_entityref
self.handle_data(replacement)
File "/usr/lib/python2.7/htmllib.py", line 65, in handle_data
self.savedata = self.savedata + data
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 0: ordinal not in range(128)
If I don't import cases or emails, I can import accounts and contacts.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/937280/+subscriptions
Follow ups
References