Hi,

I'm trying to expose a folder in my application, so I tried to use the 
Expose function as described 
here<http://web2py.com/books/default/chapter/29/14/other-recipes#Publishing-a-folder>

My controller looks like :

from gluon.tools import Expose
> def presse():
>     files=Expose(request.folder+'static/presse')
>     return dict(files=files)


When I reach the correct URL, I see links for every file in that folder, 
but they point to nothing.

Same goes for image previews : they are broken.


I checked one of the broken previews, and it points to : 
"/presse/logo.png", when it should point to "/static/presse/logo.png".


What did I do wrong ?

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to