def get(self): mall = Mall.query().get() if not mall: mall = Mall() mall.create_event_list() self.response.out.write(mall.upcoming_event_list)