[Seaside-dev] WAFileLibrary>>#deployFiles filename changing
Nick Ager
nick.ager at gmail.com
Wed Feb 16 18:06:51 UTC 2011
Hi,
I've hit a problem with WAFileLibrary derived libraries in that #deployFiles
doesn't preserve the original filename, if that filename contains non
alphanumeric characters. During development all is well as the WAFileLibrary
converts the requested filename to a valid selector before testing against
the file-libraries selectors. However when the files are served directly
from the file system, the incoming conversion doesn't take place and the
file is not located:
jquery.ui.stars.gif => #jqueryuistarsGif => jqueryuistars.gif
bubbletip-T-B.png => #bubbletipTBPng => bubbletipTB.png
As a solution would it make sense to add a pragma which stored the original
filename and if present would be used in #deploy files?
bubbletipTBPng
<filename: 'bubbletip-T-B-png'>
^ #(137 80 78 ....) asByteArray
Happy to implement this if people think it makes sense
Cheers
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20110216/eeeb0fea/attachment.htm
More information about the seaside-dev
mailing list