Hurrah! You're the man, thank you! I don't need directory listing, so we can shelve that until a need emerges...
J. On Feb 11, 1:43 pm, "[email protected]" <[email protected]> wrote: > Thanks for posting about this to the list. > > On Feb 11, 12:10 pm, jnthnlstr <[email protected]> wrote: > > > I'm trying to use the twstatic plugin to serve my stylesheets, images > > and javascript from my TiddlyWeb. > > > I've used scp to copy my local files to three directories on the > > server, under the static directory: css, images, javascript. > > > Now, when I try access any of the files in these folders, I get a 404; > > This is/was a bug based on how the /static route was being handled in > the plugin. > > > additionally, if I try and access a folder e.g. /css, I get this > > exception: > > Ah yeah, it wasn't initially written to support this. > > > File "/home/ilga/ilga/static.py", line 40, in static > > static_file = file(full_path) > > IOError: [Errno 21] Is a directory > > The static plugin is written to only send files, not listings of files > in directories. Doing that would make it considerably more > complicated. It's certainly possible, but not really in the brief that > I was trying to satisfy. I have made some changes to support getting > at files in subdirectories, but not listing files. If you need listing > we could/should make something else. > > > Is the plugin meant to behave this like? If so, please can folder > > support be added? > > Inhttp://trac.tiddlywiki.org/changeset/8719I've committed some > changes that: > > * enable files in subdirectories to be delivered > * gives a more reasonable error when you try to access a directory > instead of a file > > The previous code was reading the filename URL parameter as a segment, > meaning only stuff that didn't include '/'. Now it will accept > anything after the initial '/static/'. > > Hope this gets you somewhere close to what you need. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---
