def index(self): self.render('geoinfo/geojson/index.html', kwd={}, userinfo=self.userinfo, unescape=tornado.escape.xhtml_unescape, json_arr=MJson.query_recent(self.userinfo.uid, 20) if self.userinfo else [])
def list(self): kwd = {} self.render('geoinfo/geojson/gson_recent.html', kwd=kwd, userinfo=self.userinfo, unescape=tornado.escape.xhtml_unescape, json_arr=MJson.query_recent(num=20))