[Seaside] Bespin integration
Philippe Marschall
philippe.marschall at gmail.com
Sat Sep 11 07:47:04 UTC 2010
2010/9/11 laurent laffont <laurent.laffont at gmail.com>:
> Hi,
> I'm trying to create a WAFileLibrary subclass and import Bespin
> Embedded. https://bespin.mozillalabs.com/docs/embedding/index.html
> However, Bespin expects this file hierarchy to work:
> ressources/
> -- screen_theme/
> -- theme.less
> -- images
> lines.png
> ....
> With WAFileLibrary the path to files is built using the class name.
>
> Is there a way to choose the directory name for a WAFileLibrary ? So I can
> access theme.less like this:
> http://localhost:8080/BespinLibrary/ressources/screen_theme/theme.less
> I know I can serve static filesusing an external Web server but I really
> want to put this in the image. (Or, if possible, serve static files
> via KomHttpServer or another Web server running on another port).
> Laurent Laffont
The easiest is probably to create a file handler named 'resources' and
override #name in your file library to answer 'screen_theme'.
Cheers
Philippe
More information about the seaside
mailing list