Bespin integration

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

Bespin integration

laurent laffont
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:

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). 

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

Re: Bespin integration

Philippe Marschall
2010/9/11 laurent laffont <[hidden email]>:

> 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
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside