2 # -*- coding: iso-8859-15 -*-
4 from pylons.decorators import jsonify
5 from wradmin.lib.base import BaseController, render
6 import wradmin.model as model
9 class MaptoolController(BaseController):
12 return render('maptool.html')
15 def ajax_sledding(self):
16 # Putting the result in a dict is not necessary but avoids a warning that array type jsonified data are cross-site data leak attackable
17 return {'sledding': model.meta.Session.query(model.WrSledrunCache.page_title, model.WrSledrunCache.position_latitude, model.WrSledrunCache.position_longitude).filter('position_latitude is not null and position_longitude is not null').all()}
21 # Putting the result in a dict is not necessary but avoids a warning that array type jsonified data are cross-site data leak attackable
22 return {'inns': model.meta.Session.query(model.WrInnCache.page_title, model.WrInnCache.position_latitude, model.WrInnCache.position_longitude).filter('position_latitude is not null and position_longitude is not null').all()}