示例#1
0
 def internalerror(self):
     if conf.settings.DEBUG:
         from pweb.http import debugerror
         return debugerror.debugerrorRsp()
     else:
         return http._InternalError()
示例#2
0
 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))