fix string replacement with % (% seems to be prioriter than +). Fixes #5494

This commit is contained in:
Yann Leboulanger 2009-12-07 20:42:24 +01:00
parent 7b58e145af
commit d15897e50e
1 changed files with 3 additions and 2 deletions

View File

@ -1689,8 +1689,9 @@ class ChatControl(ChatControlBase):
if 'location' in self.contact.pep:
location = self.contact.pep['location']._pep_specific_data
if ('lat' in location) and ('lon' in location):
uri = 'http://www.openstreetmap.org/?mlat=%(lat)s&mlon=%(lon)s&' + \
'zoom=16' % {'lat': location['lat'], 'lon': location['lon']}
uri = 'http://www.openstreetmap.org/?' + \
'mlat=%(lat)s&mlon=%(lon)s&zoom=16' % {'lat': location['lat'],
'lon': location['lon']}
helpers.launch_browser_mailer('url', uri)
def _on_window_motion_notify(self, widget, event):