示例#1
0
文件: app.py 项目: fartashh/PyApiRepo
 def help(self, **kwargs):
     try:
         html = api_repository.api_readme(kwargs)['result']
         return '''<html><head><link href="../static/css/lib/bootstrap.min.css" rel="stylesheet"></head><body><div class='container'>{}</div></body></html>'''.format(html)
     except Exception,e:
         print("Very Bad Exception ::{}".format(e))
         raise cherrypy.HTTPError(666, "General Exception")
示例#2
0
文件: app.py 项目: fartashh/PyApiRepo
 def api_readme(self,**kwargs):
     try:
         return api_repository.api_readme(kwargs)
     except Exception,e:
         print("Very Bad Exception ::{}".format(e))
         raise cherrypy.HTTPError(666, "General Exception")