def post(self): type = self['type'] events = Event.get_all_events(type) self.write(json.dumps({'events':events}), 200, "application/json")