[Etoys] SugarDataStore>>getFilename: problem

karl ramberg karlramberg at gmail.com
Tue Dec 30 10:28:33 EST 2008

Actually the bug in SugarDatastoreDirectory>>entries is because of
contractTo: and utf8ToSqueak. To make it work I have to put 'asString'
before 'contractTo:' and delete utf8ToSqueak.


On 12/30/08, karl ramberg <karlramberg at gmail.com> wrote:
> I get a walkback on the 'entries' method because of the attempt to do
> slash changes. Also the utf8ToSqueak fails because ByteString DNU. Did
> the 'title' property in Journal change recently because I don't get
> any slashes in any of the titles in my quite fresh Journal ?
> Karl
> On 12/30/08, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> On 30.12.2008, at 12:50, karl ramberg wrote:
>>> I had some problems with SugarDatastoreDirectory>>entries by the way.
>>> Shouldn't it be at:'title' asString only without the changing of back
>>> slash to forward slash ?
>> This actually changes any forward slashes to back slashes. Otherwise
>> splitting a full path name into its directory and file components
>> would get confused. This is done purely so the file names are not only
>> the hexadecimal uid, but show some of the entry title, too. When
>> retrieving the file contents later, the uid is extracted from that
>> embellished file name.
>> It's an awful hack, but too much code assumes all files are identified
>> simply by a string path name with directory separator chars. To
>> properly integrate the Journal we might have to separate the actual
>> file locator (url, datastore id, or whatever) from its human-readable
>> title in all the tools that show files.
>> - Bert -
>> _______________________________________________
>> Etoys mailing list
>> Etoys at lists.laptop.org
>> http://lists.laptop.org/listinfo/etoys

More information about the Etoys mailing list