depot.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:solaris-ips 作者: oracle 项目源码 文件源码
def status_0(self, *tokens):
                """Return a JSON formatted dictionary containing statistics
                information for the repository being served."""

                self.__set_response_expires("versions", 5*60, 5*60)

                dump_struct = self.repo.get_status()

                try:
                        out = json.dumps(dump_struct, ensure_ascii=False,
                            indent=2, sort_keys=True)
                except Exception as e:
                        raise cherrypy.HTTPError(http_client.NOT_FOUND, _("Unable "
                            "to generate statistics."))
                return misc.force_bytes(out + "\n")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号