Maybe try this:
def files():
response.headers['Content-Type'] = 'application/json'
try:
files = Expose('.../Desktop/Files')
except HTTP as http_response:
if http_response.status == 200:
http_response.headers['Content-Type'] = 'application/json'
raise http_response
return dict(files=files)
Anthony
On Thursday, August 6, 2015 at 11:14:41 AM UTC-4, Alehandro Ramoz Rodrigez
wrote:
>
> No, they haven't extensions, but they contain data in json format
> Is there any way do change defaults settings?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.