def update_names(self): for loc in Location.find(): loc.nursing_home_name = util.unescape(loc.nursing_home_name) loc.save() return u"Success!"
def page(self, start=0, limit=10): locations = Location.find(query={"city":"Chicago"}).skip(int(start)).limit(int(limit)).sort("nursing_home_name", 1) return JSONObject(success=True, action="replace", html=self.render("locations.html", args={"locations":locations}), identifier="#locations", data={"next":start})