Improved WAFileLibrary

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

Improved WAFileLibrary

Nick
Hi,

Philippe has recently integrated some improvements I've made to WAFileLibrary described in this issue: http://code.google.com/p/seaside/issues/detail?id=267

WAAbstractFileLibrary has been introduced which acts as a base for the old file libraries derived from WAFileLibrary and introduces a new subclass WAFileMetadataLibrary. WAFileMetadataLibrary supports resources with paths, which is handy when, for example, the javascript or css in a file library expects its supporting images to be in subdirectories such as img/xxxx.png. WAFileMetadataLibrary also records the original filenames so that when you #deployFiles from the file library on a production server, the exported files will maintain their original names and paths.

WAFileMetadataLibrary allows for the easy integration of libraries such as Twitter Bootstrap.

There's a new method for recursing a sub-directory tree to add all the files and record their relative paths:

MYWAFileMetadataDerivedFileLibrary recursivelyAddAllFilesIn: '/var/www/files/twitterbootstrap' 

The work was based on a previous implementation by Avi Shefi with ideas from Boris Popov.

If you're feeling brave, grab the latest code from the tip of the repository or use an image from Lukas's build server [1]. Be great if a few people can try it out. If all is well, we'll take this change and other bug fixes [2] make a point release.

Cheers

Nick


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

Screen Shot 2012-03-21 at 09.35.40.png (98K) Download Attachment