equal
deleted
inserted
replaced
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 |