def get(self): event_list = Event.get_reversed_list(10, 1) updated_at_list = [event.updated_at for event in event_list] latest_updated_at = rfc3339date(max(updated_at_list)) self.response.headers["Content-Type"] = "application/atom+xml" self.render_to_response( "atom.xml", events=event_list, host_url=self.request.host_url, updated_at=latest_updated_at )
def atom_updated_at(self): return rfc3339date(self.updated_at)