[Seaside] Grease - get image directory
Dale Henrichs
dhenrich at vmware.com
Wed Mar 14 18:33:40 UTC 2012
It's a bit more complicated for GemStone, as GemStone/S doesn't have an image, but the there is an equivalent interpretation.
I would think that perhaps a better notion is to define something like smalltalkRoot or smalltalkHome that has platform-specific defaults, but can be overridden at the image level...
Something like this is required for handling disk-based assets in a generic manner ...
Dale
----- Original Message -----
| From: "Francois Stephany" <tulipe.moutarde at gmail.com>
| To: seaside at lists.squeakfoundation.org
| Sent: Wednesday, March 14, 2012 11:24:18 AM
| Subject: Re: [Seaside] Grease - get image directory
|
| Does that make sense in all the dialects ? (I dont know nothing about
| Gemstone/VA/GNU)
|
| On 14/03/12 09:38, Dale Henrichs wrote:
| > It definitely would be convenient if Grease did have something like
| > a imageHome method that returned a path string to the imageHome
| > directory ...
| >
| > Dale
| >
| > ----- Original Message -----
| > | From: "Francois Stephany"<tulipe.moutarde at gmail.com>
| > | To: seaside at lists.squeakfoundation.org
| > | Sent: Wednesday, March 14, 2012 8:41:46 AM
| > | Subject: Re: [Seaside] Grease - get image directory
| > |
| > | On 14/03/12 01:33, Philippe Marschall wrote:
| > |> Am 14. März 2012 05:40 schrieb Francois
| > |> Stephany<tulipe.moutarde at gmail.com>:
| > |>> Hi,
| > |>>
| > |>> GRPlatform has two methods: filesIn:aPathString and
| > |>> directoriesIn:aPathString. They return the absolute paths of
| > |>> the
| > |>> contained
| > |>> files.
| > |>>
| > |>> However I do not see any (portable) way to know the image
| > |>> directory.
| > |>>
| > |>> I think it is sometimes needed, for example:
| > |>> GRPlatform current directoriesIn: 'bootstrap'
| > |>>
| > |>> (where bootstrap is a directory next to my Pharo image). Gives
| > |>> me
| > |>> all the
| > |>> absolute path of the directories lying in<image
| > |>> directory>/bootstrap
| > |>>
| > |>> How can I get the relative path of these directories compared
| > |>> to
| > |>> the
| > |>> 'bootstrap' directory?
| > |>
| > |> Does it have to be portable?
| > |
| > | That would be great. It's actually for this:
| > | http://code.google.com/p/seaside/issues/detail?id=267
| > | _______________________________________________
| > | seaside mailing list
| > | seaside at lists.squeakfoundation.org
| > | http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
| > |
| > _______________________________________________
| > seaside mailing list
| > seaside at lists.squeakfoundation.org
| > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
|
| --
| http://tulipemoutarde.be
| CA: +1 778 558 3225
| BE: +32 65 709 131
| _______________________________________________
| seaside mailing list
| seaside at lists.squeakfoundation.org
| http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
|
More information about the seaside
mailing list