def feed(depot, request, response, pub):
if depot.repo.mirror:
raise cherrypy.HTTPError(http_client.NOT_FOUND,
"Operation not supported in current server mode.")
if not depot.repo.get_catalog(pub).updates:
raise cherrypy.HTTPError(http_client.SERVICE_UNAVAILABLE,
"No update history; unable to generate feed.")
return pkg.server.feed.handle(depot, request, response, pub)
评论列表
文章目录