Changeset 299


Ignore:
Timestamp:
03/20/10 16:12:28 (2 years ago)
Author:
takanori
Message:

add url encode for larger map link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/gmarker_view.pt

    r295 r299  
    4040      <div id="map" style="width: 300px; height: 200px;"></div> 
    4141      <a href="" 
    42          tal:attributes="href string:http://maps.google.com/maps?q=${latlng}(${context/pretty_title_or_id})" 
     42         tal:define="mq python:modules['ZTUtils'].make_query; 
     43                     charset site_properties/default_charset|string:utf-8; 
     44                     value string:$latlng(${context/pretty_title_or_id}); 
     45                     query python:mq(q=value.encode(charset));" 
     46         tal:attributes="href string:http://maps.google.com/maps?$query" 
    4347         i18n:translate="label_larger_map"> 
    4448        View larger map 
Note: See TracChangeset for help on using the changeset viewer.