c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15276
[Bug 714640] [NEW] [trunk 3330] Bug in cre_partner_assign with french character
Public bug reported:
def geo_find(addr):
try:
regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>'
url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false'
if we have u'MONTR\xe9AL'i got a error
change by
url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr.encode('UTF8')) + '&output=xml&oe=utf8&sensor=false'
work fine
** Affects: openobject-server
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/714640
Title:
[trunk 3330] Bug in cre_partner_assign with french character
Status in OpenERP Server:
New
Bug description:
def geo_find(addr):
try:
regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>'
url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false'
if we have u'MONTR\xe9AL'i got a error
change by
url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr.encode('UTF8')) + '&output=xml&oe=utf8&sensor=false'
work fine
Follow ups
References