wsgi/handler.py
changeset 8272 18893bb969d2
parent 7083 b8e35cde46e9
child 8309 48ef505aa9f9
equal deleted inserted replaced
8271:3bd9b317b1d8 8272:18893bb969d2
   124             req.set_header('WWW-Authenticate', [('Basic', {'realm' : realm })], raw=False)
   124             req.set_header('WWW-Authenticate', [('Basic', {'realm' : realm })], raw=False)
   125         try:
   125         try:
   126             self.appli.connect(req)
   126             self.appli.connect(req)
   127         except Redirect, ex:
   127         except Redirect, ex:
   128             return self.redirect(req, ex.location)
   128             return self.redirect(req, ex.location)
   129         path = req.path
       
   130         if not path or path == "/":
       
   131             path = 'view'
       
   132         try:
   129         try:
   133             result = self.appli.publish(path, req)
   130             result = self.appli.publish(path, req)
   134         except DirectResponse, ex:
   131         except DirectResponse, ex:
   135             return WSGIResponse(200, req, ex.response)
   132             return WSGIResponse(200, req, ex.response)
   136         except StatusResponse, ex:
   133         except StatusResponse, ex: