Пример #1
0
 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
 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")