[Seaside] WAFileLibrary: How to commit the resources?

jtuchel at objektfabrik.de jtuchel at objektfabrik.de
Tue Jun 25 14:56:31 UTC 2013


Am 25.06.13 16:36, schrieb Bahman Movaqar:
> On Tue, 2013-06-25 at 16:24 +0200, jtuchel at objektfabrik.de wrote:
>> Bahman,
>> all resources are kept in the file library as smalltalk methods that
>> return a constant string or byte array. So the resource file is not used
>> or needed any more. All you have to do is save your WAFileLibrary class
>> in ypour sourfce repository (Monticello, for example). The trick of
>> WAFileLibrary is that resource files become normal Smalltalk methods and
>> can be stored with your normal source code.
> So do you mean that all I need is to load my Seaside application,
> configure SiStaticResourcesLibrary, add files to it, write it to disk
> and then commit it?
Right, that's the way I do it in VA Smalltalk and envy all the time. I 
remember saving a Seaside experiment as a local Monticello Package and 
it worked.
You might check if the uploaded methods (resources) were put into a 
wrong category / package and therefor are not stored in the mcz. That's 
the last idea I have for you.

> If yes, I've already tried it but the resources don't get pushed to the
> repository[1].
I can't load it and don't really have the time to look into why.
Judging from the diffs on sth you are right: there are no resource 
methods in your version 4.

> [1]
> http://smalltalkhub.com/#!/~Bahman/Simin/versions/Bahman-Simin-BahmanMovaqar.4

More information about the seaside mailing list