[views] fix gmap url / avoid double escaping stable
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Wed, 25 Nov 2009 11:14:04 -0800
branchstable
changeset 3918 0b7390acca7f
parent 3917 0f912c1cde28
child 3919 f91bd15f427c
[views] fix gmap url / avoid double escaping
web/views/igeocodable.py
--- a/web/views/igeocodable.py	Tue Nov 24 11:10:33 2009 -0800
+++ b/web/views/igeocodable.py	Wed Nov 25 11:14:04 2009 -0800
@@ -77,7 +77,7 @@
         self.req.demote_to_html()
         # remove entities that don't define latitude and longitude
         self.rset = self.rset.filtered_rset(lambda e: e.latitude and e.longitude)
-        self.req.add_js('http://maps.google.com/maps?sensor=false&file=api&amp;v=2&amp;key=%s' % gmap_key,
+        self.req.add_js('http://maps.google.com/maps?sensor=false&file=api&v=2&key=%s' % gmap_key,
                         localfile=False)
         self.req.add_js( ('cubicweb.widgets.js', 'cubicweb.gmap.js', 'gmap.utility.labeledmarker.js') )
         rql = self.rset.printable_rql()