WAFileLibrary>>#deployFiles filename changing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WAFileLibrary>>#deployFiles filename changing

Nick
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


_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: WAFileLibrary>>#deployFiles filename changing

Nick
http://code.google.com/p/seaside/issues/detail?id=644


On 16 February 2011 18:06, Nick Ager <[hidden email]> wrote:
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



_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev