[Seaside] WebDVS Package

Derek Brans seaside@lists.squeakfoundation.org
Sat, 11 Jan 2003 19:10:00 -0800


Hi Adrian,

The fixtemps calls are there cause Squeak doesn't have full block 
closures.

When I asked on the mailing list:

((1 to: 2) collect: [:ea | [ea asString]]) collect: [:b | b value]

evaluates to: #('2' '2')

How do you collect blocks properly?

Ned responded:

You've run into the fact that blocks aren't full closures yet.
The current (hackish) way to deal with this problem is to use
fixTemps:

((1 to: 2) collect: [:ea | [ea asString] fixTemps ]) collect: [:b | b
value]

(End of Ned's response)

I don't know when calls to fixTemps are necessary and when they aren't.

Regards,
Derek

On Saturday, January 11, 2003, at 06:05 AM, Adrian Lienhard wrote:

> Hi Derek an all Seasiders
>
> I've added the functionality "Load new Package" which - like the 
> original
> DVS - shows a file dialog where a file (on the server!) can be selected,
> which then is filed in and added to DVS. I'll use this on the 
> app-server to
> first upload packages with ftp and then load/fileIn them with WebDVS.
>
> The File Dialog uses the WATree component to present/navigate the 
> directory
> structure on the left side. On the right side, all files of the current
> directory are shown. If the file type matches one of the given 
> suffixes, the
> file can be "opened".
>
> Derek, one question: why do you send #fixTemps to every block in
> WebDVS>>packageListView?
> I always use #renderListViewOn: html instead of using a block like you 
> are.
> I like your solution (if there was not these fixTemps) because you can 
> alway
> say "html render: self XY..." and not "self renderXYOn: html".
>
> Cheers,
> Adrian
> _____________________
> Adrian Lienhard
> www.adrian-lienhard.ch
> www.netstyle.ch
>
> ----- Original Message -----
> From: "Derek Brans" <brans@nerdonawire.com>
> Sent: Friday, November 29, 2002 9:17 PM
> Subject: [Seaside] WebDVS Package
>
>
>> Here's an implementation of DVS on Seaside (idea by Avi)
>> It's useful for managing code on a remote server.
>>
>> It is limited to filing in and filing out changesets from the default
>> directory.
>>
>> Minimally tested (I used it to file itself out).
>>
>> Derek
>>
>> Nerd on a Wire: Web and Information Solutions
>> Website Design - Database Systems - Site Hosting
>> 604.874.6463
>> mailto:info@nerdonawire.com
>> For more information, visit http://nerdonawire.com
>>
>
Nerd on a Wire: Web and Information Solutions
Website Design - Database Systems - Site Hosting
604.874.6463
mailto:info@nerdonawire.com
For more information, visit http://nerdonawire.com