예제 #1
0
 def _process(self):
     filename = '{}-category.atom'.format(secure_filename(self.category.title, str(self.category.id)))
     buf = serialize_category_atom(self.category,
                                   url_for(request.endpoint, self.category, _external=True),
                                   session.user,
                                   Event.end_dt >= now_utc())
     return send_file(filename, buf, 'application/atom+xml')
예제 #2
0
파일: display.py 프로젝트: OmeGak/indico
 def _process(self):
     filename = '{}-category.atom'.format(secure_filename(self.category.title, str(self.category.id)))
     buf = serialize_category_atom(self.category,
                                   url_for(request.endpoint, self.category, _external=True),
                                   session.user,
                                   Event.end_dt >= now_utc())
     return send_file(filename, buf, 'application/atom+xml')