webmcp
annotate framework/env/request/get_id_string.lua @ 351:b1748c6c3c89
extos.stat(...) returns false (instead of nil) if file does not exist; Added extos.lstat(...) and extos.fstat(...)
| author | jbe |
|---|---|
| date | Thu Mar 26 16:38:30 2015 +0100 (2015-03-26) |
| parents | 25a20bd1f416 |
| children |
| rev | line source |
|---|---|
| jbe@91 | 1 --[[-- |
| jbe@91 | 2 id_string = |
| jbe@91 | 3 request.get_id_string() |
| jbe@91 | 4 |
| jbe@91 | 5 Returns the requested id for a view as a string (unprocessed). Use param.get_id(...) to get a processed version. |
| jbe@91 | 6 |
| jbe@91 | 7 --]]-- |
| jbe@91 | 8 |
| jbe@91 | 9 function request.get_id_string() |
| jbe@221 | 10 return request._route.id |
| jbe@91 | 11 end |