web/views/igeocodable.py
changeset 3163 edfe43ceaa35
parent 2869 0cb160fd3cdf
parent 3094 978ed8c2c0e4
child 3377 dd9d292b6a6d
--- a/web/views/igeocodable.py	Wed Sep 02 16:42:07 2009 +0200
+++ b/web/views/igeocodable.py	Thu Sep 10 08:13:22 2009 +0200
@@ -74,6 +74,7 @@
     need_navigation = False
 
     def call(self, gmap_key, width=400, height=400, uselabel=True, urlparams=None):
+        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&v=2&key=%s' % gmap_key,