WAFileLibrary: How to commit the resources?

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

WAFileLibrary: How to commit the resources?

bahman
Hi all,

So I have a subclass of WAFileLibrary (SiStaticResourcesLibrary) in my
application and obviously, I have added some resources (CSS and image)
to it.  But now I'm wondering how to include those resources in the
commit?  So that the next time I checkout the package, I wouldn't need
the real resource files.

TIA,

--
Bahman Movaqar  (http://BahmanM.com)

ERP Evaluation, Implementation & Deployment Consultant
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)

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

signature.asc (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WAFileLibrary: How to commit the resources?

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

HTH

Joachim

Am 25.06.13 16:20, schrieb Bahman Movaqar:

> Hi all,
>
> So I have a subclass of WAFileLibrary (SiStaticResourcesLibrary) in my
> application and obviously, I have added some resources (CSS and image)
> to it.  But now I'm wondering how to include those resources in the
> commit?  So that the next time I checkout the package, I wouldn't need
> the real resource files.
>
> TIA,
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

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

Re: WAFileLibrary: How to commit the resources?

bahman
On Tue, 2013-06-25 at 16:24 +0200, [hidden email] 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?

If yes, I've already tried it but the resources don't get pushed to the
repository[1].

Thanks,

> Am 25.06.13 16:20, schrieb Bahman Movaqar:
> > Hi all,
> >
> > So I have a subclass of WAFileLibrary (SiStaticResourcesLibrary) in my
> > application and obviously, I have added some resources (CSS and image)
> > to it.  But now I'm wondering how to include those resources in the
> > commit?  So that the next time I checkout the package, I wouldn't need
> > the real resource files.

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

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

signature.asc (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WAFileLibrary: How to commit the resources?

jtuchel
Bahman,

Am 25.06.13 16:36, schrieb Bahman Movaqar:

> On Tue, 2013-06-25 at 16:24 +0200, [hidden email] 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.

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

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