pngtile/wsgi.py
changeset 90 1c317e0628a7
parent 89 02e5b9b08881
child 92 e50ec4217fe6
equal deleted inserted replaced
89:02e5b9b08881 90:1c317e0628a7
   202 ### Manipulate request data
   202 ### Manipulate request data
   203 def get_req_path (req) :
   203 def get_req_path (req) :
   204     """
   204     """
   205         Returns the name and path requested
   205         Returns the name and path requested
   206     """
   206     """
       
   207     
       
   208     # check DATA_ROOT exists..
       
   209     if not os.path.isdir(DATA_ROOT) :
       
   210         raise exceptions.InternalServerError("Missing DATA_ROOT")
   207 
   211 
   208     # path to image
   212     # path to image
   209     image_name = req.path.lstrip('/')
   213     image_name = req.path.lstrip('/')
   210     
   214     
   211     # build absolute path
   215     # build absolute path