コード例 #1
0
ファイル: application.py プロジェクト: yehuaqing/pweb
 def internalerror(self):
     if conf.settings.DEBUG:
         from pweb.http import debugerror
         return debugerror.debugerrorRsp()
     else:
         return http._InternalError()
コード例 #2
0
ファイル: application.py プロジェクト: yehuaqing/pweb
 def handle_object(o):
     if self.is_function(o):
         return handle_function(o)
     if self.is_class(o):
         return handle_class(o)
     return http._InternalError("Not Support Object Type:%s"% type(o))