That is correct. current.request.raw_args == '/css' So checking for empty args fixes this.
I have submitted a patch for this and some other issues: http://code.google.com/p/web2py/issues/detail?id=1131&thanks=1131&ts=1351737416 I needed to be able to filter files by extension and prevent downloading - is this use case too specific for the included Expose()? Richard On Thu, Nov 1, 2012 at 12:29 AM, Niphlod <niph...@gmail.com> wrote: > patches are welcome, if you want to contribute. For the double slash, I > assume that there's a problem parsing args .... ['static', 'css', '']. > Expose should probably check for empty values into args before re-rendering > the thing as a url (something/static/css// vs something/static/css/) > > Open an issue on google code and attach the patch so this doesn't get lost. > > > On Wednesday, October 31, 2012 1:19:42 PM UTC+1, Richard Penman wrote: >> >> Nice! I will modify this for my own use. >> What is this included in gluon for? >> >> I noticed a double slash is shown for sub-folders: >> base//css/ (<- when in static/css) >> >> >> On Wed, Oct 31, 2012 at 8:09 PM, Niphlod <nip...@gmail.com> wrote: >> > there's something, not really tested, that you can definitely try: >> > from gluon.tools import Expose >> > myfolders = Expose() >> > return dict(myfolders=myfolders) >> > >> > On Wednesday, October 31, 2012 3:04:14 AM UTC+1, Richard Penman wrote: >> >> >> >> Is there an existing app / plugin that supports selecting a file from >> >> the >> >> server? >> >> Specifically I want to select a filepath from the /static/ directory >> >> and >> >> sub-directories. >> >> >> >> Richard >> > >> > -- >> > >> > >> > > > -- > > > --