From seaside@lists.squeakfoundation.org Mon Sep 2 06:21:18 2002 From: seaside@lists.squeakfoundation.org (Serge Stinckwich) Date: Mon, 2 Sep 2002 07:21:18 +0200 Subject: [Seaside] No templates in Borges ? Message-ID: <20020902072118.57b6c5e2.Serge.Stinckwich@info.unicaen.fr> Hi, i'm testing Borges and the template system seems to have been removed ... This is definitive ? There is no user authentification model righ now in Seaside, what are the plans about that ? -- Serge Stinckwich -< ) multiagent.com Université de Caen>CNRS UMR 6072>GREYC>I3>SMILE /~\ squeak.org http://www.iutc3.unicaen.fr/serge/ (/ | zope.org Smalltalkers do: [:it | All with: Class, (And love: it)] _|_/ debian.org From seaside@lists.squeakfoundation.org Mon Sep 2 22:43:56 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Mon, 2 Sep 2002 14:43:56 -0700 (PDT) Subject: [Seaside] No templates in Borges ? In-Reply-To: <20020902072118.57b6c5e2.Serge.Stinckwich@info.unicaen.fr> Message-ID: On Mon, 2 Sep 2002, Serge Stinckwich wrote: > Hi, > i'm testing Borges and the template system seems to have been removed ... This is definitive ? Borges does not include a template system. Marquez, which is/will be the higher level presentation layer of Seaside 2.0, will have a template system. Exactly what kind of a template system this will be remains to be seen; we're still playing around. > There is no user authentification model righ now in Seaside, what are the plans about that ? No immediate plans - do you have any suggestions? From seaside@lists.squeakfoundation.org Sun Sep 8 20:11:20 2002 From: seaside@lists.squeakfoundation.org (Glenn Swanlund) Date: Sun, 08 Sep 2002 12:11:20 -0700 Subject: [Seaside] Seaside -- confirmation of subscription -- request 467252 Message-ID: <000c01c2576b$83fe6640$0f02a8c0@Glenn> This is a multi-part message in MIME format. --Boundary_(ID_6B2aDb/YpkXehN1ONSJjmQ) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT confirm 467252 --Boundary_(ID_6B2aDb/YpkXehN1ONSJjmQ) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
confirm 467252
--Boundary_(ID_6B2aDb/YpkXehN1ONSJjmQ)-- From seaside@lists.squeakfoundation.org Tue Sep 17 12:59:25 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Tue, 17 Sep 2002 13:59:25 +0200 Subject: [Seaside] repeated page weird problem (or bug?) Message-ID: <20020917115925.GA10667@linalco.com> * Setup sample ExListPersons>>html: ^ '' ExListPersons>>persons: ^ "list of people that a Postgres SQL query returns" ExListPersonLine>>html: ^ '[name]' and viewPerson shows the details of that particular contact. The SQL query is quite slow, taking seconds (driver related or because it connects and tears down connection each time). * Scenario A page of people. If you open a couple of viewPerson links before the page has started to render on the browser, even with url changing, the contents are the same. What am I missing? -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Tue Sep 17 18:46:32 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 17 Sep 2002 10:46:32 -0700 (PDT) Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: <20020917115925.GA10667@linalco.com> Message-ID: On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > A page of people. If you open a couple of viewPerson links before the page > has started to render on the browser, even with url changing, the contents > are the same. Are you saying that there is different behavior for the same link depending on whether or not the page has fully rendered when you click it? From seaside@lists.squeakfoundation.org Tue Sep 17 18:52:41 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Tue, 17 Sep 2002 19:52:41 +0200 Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: References: <20020917115925.GA10667@linalco.com> Message-ID: <20020917175241.GB16433@linalco.com> On Tue, Sep 17, 2002 at 10:46:32AM -0700, Avi Bryant wrote: > > On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > > > A page of people. If you open a couple of viewPerson links before the page > > has started to render on the browser, even with url changing, the contents > > are the same. > > Are you saying that there is different behavior for the same link > depending on whether or not the page has fully rendered when you click it? Exactly. If you open two links and the page hasn't started loading on the browser (or maybe isnt fully rendered), when they come up both have the same. -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Tue Sep 17 19:06:57 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 17 Sep 2002 11:06:57 -0700 (PDT) Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: <20020917175241.GB16433@linalco.com> Message-ID: On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > On Tue, Sep 17, 2002 at 10:46:32AM -0700, Avi Bryant wrote: > > > > On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > > > > > A page of people. If you open a couple of viewPerson links before the page > > > has started to render on the browser, even with url changing, the contents > > > are the same. > > > > Are you saying that there is different behavior for the same link > > depending on whether or not the page has fully rendered when you click it? > > Exactly. If you open two links and the page hasn't started loading on the > browser (or maybe isnt fully rendered), when they come up both have the same. Can you explain to me exactly what the series of steps is, ie, is it - open page with list of names - while that page is loading, click on two names and open in separate windows - both those windows show the same person (the first one you clicked or the second?) One thing you should know is that Seaside doesn't let you have two concurrent requests for the same session - if a new request comes before the previous one has finished, it waits for the first request before proceeding. There's a 5 second timeout, so if the earlier request is taking too long it gets canceled and the new one goes through. I don't really see how that could be producing what you describe, though. From seaside@lists.squeakfoundation.org Tue Sep 17 19:15:00 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Tue, 17 Sep 2002 20:15:00 +0200 Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: References: <20020917175241.GB16433@linalco.com> Message-ID: <20020917181500.GA16713@linalco.com> On Tue, Sep 17, 2002 at 11:06:57AM -0700, Avi Bryant wrote: > Can you explain to me exactly what the series of steps is, ie, is it > > - open page with list of names > - while that page is loading, click on two names and open in separate > windows > - both those windows show the same person (the first one you clicked or > the second?) - open page with list of names - page with list of names fully loads - now, on mozilla, control + click on a couple of those names quickly.. it'll open "loading.." tabs in the background. When they finish loading, they show the same guy instead of a different one. For example: http://localhost:8000/seaside/exodus/view?session=72A8697EE550D402&txn=top&page=7 http://localhost:8000/seaside/exodus/view?session=72A8697EE550D402&txn=top&page=8 http://localhost:8000/seaside/exodus/view?session=72A8697EE550D402&txn=top&page=9 all show this guy. If i wait until 7 loads, then click on 8, 8 renders ok. > One thing you should know is that Seaside doesn't let you have two > concurrent requests for the same session - if a new request comes before > the previous one has finished, it waits for the first request before > proceeding. There's a 5 second timeout, so if the earlier request is > taking too long it gets canceled and the new one goes through. > > I don't really see how that could be producing what you describe, though. Hrm. Well. I'm puzzled.. :) -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Tue Sep 17 19:28:05 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 17 Sep 2002 11:28:05 -0700 (PDT) Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: <20020917181500.GA16713@linalco.com> Message-ID: On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > On Tue, Sep 17, 2002 at 11:06:57AM -0700, Avi Bryant wrote: > > Can you explain to me exactly what the series of steps is, ie, is it > > > > - open page with list of names > > - while that page is loading, click on two names and open in separate > > windows > > - both those windows show the same person (the first one you clicked or > > the second?) > > - open page with list of names > - page with list of names fully loads > - now, on mozilla, control + click on a couple of those names quickly.. > it'll open "loading.." tabs in the background. When they finish loading, > they show the same guy instead of a different one. I still want to know if it's the first guy you clicked on or the second one. But yes, that's very odd. Are the pages identical? Like, do the links on them have the same urls? From seaside@lists.squeakfoundation.org Tue Sep 17 20:30:27 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Tue, 17 Sep 2002 21:30:27 +0200 Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: References: <20020917181500.GA16713@linalco.com> Message-ID: <20020917193027.GA18002@linalco.com> On Tue, Sep 17, 2002 at 11:28:05AM -0700, Avi Bryant wrote: > > On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > > > On Tue, Sep 17, 2002 at 11:06:57AM -0700, Avi Bryant wrote: > > > Can you explain to me exactly what the series of steps is, ie, is it > > > > > > - open page with list of names > > > - while that page is loading, click on two names and open in separate > > > windows > > > - both those windows show the same person (the first one you clicked or > > > the second?) > > > > - open page with list of names > > - page with list of names fully loads > > - now, on mozilla, control + click on a couple of those names quickly.. > > it'll open "loading.." tabs in the background. When they finish loading, > > they show the same guy instead of a different one. > > I still want to know if it's the first guy you clicked on or the second > one. But yes, that's very odd. Umm.. i dont understand your question fully. I click on both. Both links coming from the page with the list, that is let to fully load. [page with names] -name 1 <-- ctrl+click to open in bg in new page -name 2 <-- ctrl+click to open in bg in new page [end of page] > Are the pages identical? Like, do the links on them have the same urls? No.. in page 1 I have a link.. it points to: http://localhost:8000/seaside/exodus/act?session=72A8697EE550D402&txn=top&page=25&6=++ on page 2, identical, links to: http://localhost:8000/seaside/exodus/act?session=72A8697EE550D402&txn=top&page=26&6=++ -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Tue Sep 17 20:54:08 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 17 Sep 2002 12:54:08 -0700 (PDT) Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: <20020917193027.GA18002@linalco.com> Message-ID: On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > > I still want to know if it's the first guy you clicked on or the second > > one. But yes, that's very odd. > > Umm.. i dont understand your question fully. I click on both. Both links > coming from the page with the list, that is let to fully load. Sorry. What I mean is, you click on two names. Two identical pages come up. But do the identical pages both show the first name you clicked on, or the second one? Or neither? This definitely does feel like a bug, and a scary one at that. Later tonight I'll see if I can reproduce it - if you can whittle it down yourself to a minimal case that still shows the behavior that would be great. You can use "(Delay forSeconds: ...) wait" to simulate a database query taking a while. From seaside@lists.squeakfoundation.org Tue Sep 17 21:06:55 2002 From: seaside@lists.squeakfoundation.org (Glenn Swanlund) Date: Tue, 17 Sep 2002 13:06:55 -0700 Subject: [Seaside] Calendar Example Message-ID: <006201c25e85$c5ab62c0$0f02a8c0@Glenn> This is a multi-part message in MIME format. --Boundary_(ID_rwXlOg4Fu6J72n6TSXzrNQ) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Part 2 of the tutorial mentions a calendar to be discussed in the next tutorial. Would this calendar example be available to study now? Regards, Glenn --Boundary_(ID_rwXlOg4Fu6J72n6TSXzrNQ) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Part 2 of the tutorial mentions a calendar to be discussed in the next tutorial. Would this calendar example be available to study now?
 
Regards,
Glenn
--Boundary_(ID_rwXlOg4Fu6J72n6TSXzrNQ)-- From seaside@lists.squeakfoundation.org Tue Sep 17 21:23:07 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Tue, 17 Sep 2002 22:23:07 +0200 Subject: [Seaside] repeated page weird problem (or bug?) In-Reply-To: References: <20020917193027.GA18002@linalco.com> Message-ID: <20020917202307.GA18301@linalco.com> On Tue, Sep 17, 2002 at 12:54:08PM -0700, Avi Bryant wrote: > > On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote: > > > > I still want to know if it's the first guy you clicked on or the second > > > one. But yes, that's very odd. > > > > Umm.. i dont understand your question fully. I click on both. Both links > > coming from the page with the list, that is let to fully load. > > Sorry. What I mean is, you click on two names. Two identical pages come > up. But do the identical pages both show the first name you clicked on, > or the second one? Or neither? Ahh.. gotcha. The one that shows in pages is the last one I click on. > This definitely does feel like a bug, and a scary one at that. Later > tonight I'll see if I can reproduce it - if you can whittle it down > yourself to a minimal case that still shows the behavior that would be > great. You can use "(Delay forSeconds: ...) wait" to simulate a database > query taking a while. Tried but couldnt reproduce it.. I'll give it a go again tomorrow morning. -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Tue Sep 17 21:44:27 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 17 Sep 2002 13:44:27 -0700 (PDT) Subject: [Seaside] Calendar Example In-Reply-To: <006201c25e85$c5ab62c0$0f02a8c0@Glenn> Message-ID: On Tue, 17 Sep 2002, Glenn Swanlund wrote: > Part 2 of the tutorial mentions a calendar to be discussed in the next > tutorial. Would this calendar example be available to study now? Sadly, no. A while back, Jim Benson was working on a very nice calendar app, but I haven't heard from him for a while, so I don't know whether he has anything you could look at. If you want an example of the usage of subcomponents, you might want to study the 'store' example included with Seaside (Seaside-Examples-Store). It exercises most of the Seaside's subcomponent capabilities. A simple example is IAStoreFrame, which puts a simple border up and embeds two subcomponents, IAStoreCart and IAStoreList, that do the bulk of the work. This is a very common pattern in Seaside. More complex subcomponent use in the store example that you can puzzle through (or ask me about) includes: - IAStoreList embeds a IAStoreItemView within a repeating table; IAStoreItemView implements #defaultCallbacks and #defaultDisplayEvent to change its 'item' variable each time through the repeat. - In IAStoreItemView>>buy, there is a call to "parent inform:". This is making use of the ability to control which component is swapped out by a #callPage: (if it had been "self inform:", the IAStoreItemView would have been replaced by the message but the IAStoreList enclosing it would have remained. If it had been "root inform:", the entire page would have been replaced). Avi From seaside@lists.squeakfoundation.org Tue Sep 24 11:31:46 2002 From: seaside@lists.squeakfoundation.org (Chris Double) Date: Tue, 24 Sep 2002 10:31:46 UT Subject: [Seaside] New to Seaside Message-ID: <20020924103146.E30CF936F2@server2.fastmail.fm> For someone new to Seaside, would it be better to start with the original Seaside code or try out the 2.0 code straight away? Is any more work going to be done on the original code? Chris. -- Chris Double chris.double@double.co.nz From seaside@lists.squeakfoundation.org Tue Sep 24 17:00:15 2002 From: seaside@lists.squeakfoundation.org (Colin Putney) Date: Tue, 24 Sep 2002 09:00:15 -0700 Subject: [Seaside] New to Seaside In-Reply-To: <20020924103146.E30CF936F2@server2.fastmail.fm> Message-ID: On Tuesday, September 24, 2002, at 10:31 AM, Chris Double wrote: > For someone new to Seaside, would it be better to start with the > original Seaside code or try out the 2.0 code straight away? Is any > more work going to be done on the original code? I'd stick with Seaside 0.94 for now. It's still being maintained and supported if not actively developed. Seaside 2.0 is only about half-finished. The lower levels are pretty solid, but there's no template system yet. Cheers, Colin Colin Putney Whistler.com From seaside@lists.squeakfoundation.org Tue Sep 24 19:54:21 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 24 Sep 2002 11:54:21 -0700 (PDT) Subject: [Seaside] New to Seaside In-Reply-To: <20020924103146.E30CF936F2@server2.fastmail.fm> Message-ID: On Tue, 24 Sep 2002, Chris Double wrote: > For someone new to Seaside, would it be better to start with the > original Seaside code or try out the 2.0 code straight away? That really depends on where your interest lies. There are a couple of easy answers: - If you need or want HTML templates, rather than programmatic HTML generation, use Seaside 0.9x (that is, do you prefer dom-builder or Koala/DSP? ;-) - If you want an API that's totally stable or complete, use Seaside 0.9x On the other hand, if you want to hack on the framework, or help move it forward, or just don't care about the earlier two points, use Seaside 2.0. The largely completed "Borges" layer is a nice framework in itself to develop with, even without the (vaporware) additions to it that will eventually form Seaside 2.0. There's a lot less strange magic to contend with than in the original Seaside code, and it is IMO more "in the spirit of Smalltalk". I should also say that people who have used both tend to prefer the new code. > Is any more work going to be done on the original code? There are still applications being developed with it, so it will be maintained, but I wouldn't expect much new on that branch except for bug fixes. Cheers, Avi From seaside@lists.squeakfoundation.org Wed Sep 25 06:03:57 2002 From: seaside@lists.squeakfoundation.org (Glenn Swanlund) Date: Tue, 24 Sep 2002 22:03:57 -0700 Subject: [Seaside] Magma Message-ID: <001a01c26450$f4758920$0f02a8c0@Glenn> This is a multi-part message in MIME format. --Boundary_(ID_l2mXnnii7CArNMNRGZVBQg) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT I've used MinneStore in a PWS application but am now considering using Magma with Seaside. Any comments or recommendations? Regards, Glenn --Boundary_(ID_l2mXnnii7CArNMNRGZVBQg) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
I've used MinneStore in a PWS application but am now considering using Magma with Seaside. Any comments or recommendations?
 
Regards,
Glenn
--Boundary_(ID_l2mXnnii7CArNMNRGZVBQg)-- From seaside@lists.squeakfoundation.org Wed Sep 25 06:31:56 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Tue, 24 Sep 2002 22:31:56 -0700 (PDT) Subject: [Seaside] Magma In-Reply-To: <001a01c26450$f4758920$0f02a8c0@Glenn> Message-ID: On Tue, 24 Sep 2002, Glenn Swanlund wrote: > I've used MinneStore in a PWS application but am now considering using > Magma with Seaside. Any comments or recommendations? The last time I looked at Magma, it didn't work properly with multiple active sessions per image (I generally use a separate database session for each Seaside session). Magma's also not yet very fault tolerant (it's possible to corrupt your data from a power outage, for example). If neither of those are a problem for you, it might be a reasonable way to go; personally, I'd wait for it to mature a bit. Other options: - You could check out Stephen Pair's BerkeleyDB plugin, which has a simple OODB layered on top of it. Much less transparent than something like Magma, but as Cees will point out, opacity has its advantages. - There are a couple of object/relational mapping frameworks around. Nevin Pratt did a port of GLORP, and there's also Tantalus, which I know to work well in combination with Seaside and MySQL. - I have a lot of the work done for a GOODS client, but I've been putting that on hold until I see what happens with Stephen's "persistence VM". GOODS is a very solid public domain object database that's actually pretty similar to Magma, but faster, more reliable, and not specifically targeted at Smalltalk. Unfortunately there's still probably a weekend or two of work someone would have to do before the Squeak client is ready, and I never seem to have that weekend free. I keep hoping someone will volunteer to do it for me... ;). Anyone know of anything else? Avi From seaside@lists.squeakfoundation.org Fri Sep 27 01:40:19 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Thu, 26 Sep 2002 17:40:19 -0700 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi Message-ID: Hi y'all, Is it possible to allow multiple people to host their own seaside applications with their own images? Can that be done in a secure way? Can people upload their squeak images to the server and have them come to life? Also, is there a cgi version of squeak? Thanks, Derek Phasecraft: Smarter Web Development. Experts in web design, databases, flash design, multi-lingual sites, branding, marketing and web hosting. phone: 604-874-6463 mailto:info@phasecraft.com http://www.phasecraft.com From seaside@lists.squeakfoundation.org Fri Sep 27 02:19:33 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Thu, 26 Sep 2002 18:19:33 -0700 (PDT) Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi In-Reply-To: Message-ID: On Thu, 26 Sep 2002, Derek Brans wrote: > Hi y'all, > > Is it possible to allow multiple people to host their own seaside > applications with their own images? Can that be done in a secure way? > Can people upload their squeak images to the server and have them come > to life? This would certainly all be possible, although I don't know of any hosting providers actively supporting Squeak. If anyone is interested, however, I could likely arrange something. Email me privately and we can work something out. Cees de Groot could probably help you as well. > Also, is there a cgi version of squeak? Squeak isn't a very good fit with CGI - better would be GNU Smalltalk or Ruby, which have much lower startup time and process overhead. Squeak makes more sense for long running application servers (closer to the Java Servlet model than to CGI). Avi From seaside@lists.squeakfoundation.org Fri Sep 27 02:25:26 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Thu, 26 Sep 2002 18:25:26 -0700 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi In-Reply-To: Message-ID: <0067E2FE-D1B8-11D6-BEAA-000393814416@phasecraft.com> Hi Avi, I have access to my very own server. I don't have seaside installed yet, but I wanted to know if it is possible to manage seaside sites just as I would other sites on my server. Is it possible (within the limits of seaside) that a user could upload an image and start it up? Does that mean you need one image running for every seaside site? Is that scalable? Derek On Thursday, September 26, 2002, at 06:19 PM, Avi Bryant wrote: > > > On Thu, 26 Sep 2002, Derek Brans wrote: > >> Hi y'all, >> >> Is it possible to allow multiple people to host their own seaside >> applications with their own images? Can that be done in a secure way? >> Can people upload their squeak images to the server and have them come >> to life? > > This would certainly all be possible, although I don't know of any > hosting > providers actively supporting Squeak. > > If anyone is interested, however, I could likely arrange something. > Email > me privately and we can work something out. Cees de Groot could > probably > help you as well. > >> Also, is there a cgi version of squeak? > > Squeak isn't a very good fit with CGI - better would be GNU Smalltalk or > Ruby, which have much lower startup time and process overhead. Squeak > makes more sense for long running application servers (closer to the > Java > Servlet model than to CGI). > > Avi > > _______________________________________________ > Seaside mailing list > Seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/listinfo/seaside > > Phasecraft: Smarter Web Development. Experts in web design, databases, flash design, multi-lingual sites, branding, marketing and web hosting. phone: 604-874-6463 mailto:info@phasecraft.com http://www.phasecraft.com From seaside@lists.squeakfoundation.org Fri Sep 27 03:06:33 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Thu, 26 Sep 2002 19:06:33 -0700 (PDT) Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi In-Reply-To: <0067E2FE-D1B8-11D6-BEAA-000393814416@phasecraft.com> Message-ID: On Thu, 26 Sep 2002, Derek Brans wrote: > Hi Avi, > > I have access to my very own server. I don't have seaside installed > yet, but I wanted to know if it is possible to manage seaside sites just > as I would other sites on my server. Is it possible (within the limits > of seaside) that a user could upload an image and start it up? Does > that mean you need one image running for every seaside site? Is that > scalable? I don't really understand your question about uploading an image and starting it up - if you either give them enough access to start a Squeak process going, or write some scripts to automate this, then, yes, of course they can. To be anything like secure, you will definitely need a separate image for each user. Scalability of this depends on a couple of things - Squeak images can be stripped easily to about 6-8 megabytes, so count on using that much RAM for each user. On unix, the standard Squeak VM is a bit of a CPU hog; it seems to help to compile it with -DITIMER, but I'll have to do some more experimentation to be sure. What kind of a usage scenario are you imagining? Avi From seaside@lists.squeakfoundation.org Fri Sep 27 03:12:53 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Thu, 26 Sep 2002 19:12:53 -0700 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi In-Reply-To: Message-ID: Thanks for your replies, Avi. I'm imagining the possibility of offering Seaside hosting to the Seaside community on one server. Another scenario is having different virtual domains on one server, each domain a seaside-driven site administered by me. Could the latter could be accomplished with one image? On Thursday, September 26, 2002, at 07:06 PM, Avi Bryant wrote: > > On Thu, 26 Sep 2002, Derek Brans wrote: > >> Hi Avi, >> >> I have access to my very own server. I don't have seaside installed >> yet, but I wanted to know if it is possible to manage seaside sites >> just >> as I would other sites on my server. Is it possible (within the limits >> of seaside) that a user could upload an image and start it up? Does >> that mean you need one image running for every seaside site? Is that >> scalable? > > I don't really understand your question about uploading an > image and starting it up - if you either give them enough access to > start > a Squeak process going, or write some scripts to automate this, then, > yes, > of course they can. To be anything like secure, you will definitely > need > a separate image for each user. Scalability of this depends on a couple > of things - Squeak images can be stripped easily to about 6-8 megabytes, > so count on using that much RAM for each user. On unix, the standard > Squeak VM is a bit of a CPU hog; it seems to help to compile > it with -DITIMER, but I'll have to do some more experimentation to be > sure. > > What kind of a usage scenario are you imagining? > > Avi > > _______________________________________________ > Seaside mailing list > Seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/listinfo/seaside > > Phasecraft: Smarter Web Development. Experts in web design, databases, flash design, multi-lingual sites, branding, marketing and web hosting. phone: 604-874-6463 mailto:info@phasecraft.com http://www.phasecraft.com From seaside@lists.squeakfoundation.org Fri Sep 27 03:23:16 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Thu, 26 Sep 2002 19:23:16 -0700 (PDT) Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi In-Reply-To: Message-ID: > I'm imagining the possibility of offering Seaside hosting to the Seaside > community on one server. > Another scenario is having different virtual domains on one server, each > domain a seaside-driven site administered by me. > > Could the latter could be accomplished with one image? Yes. From seaside@lists.squeakfoundation.org Fri Sep 27 03:20:21 2002 From: seaside@lists.squeakfoundation.org (Chris Double) Date: Fri, 27 Sep 2002 02:20:21 UT Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi Message-ID: <20020927022021.3F9679377B@server2.fastmail.fm> > I'm imagining the possibility of offering Seaside hosting to the > Seaside community on one server. Another scenario is having different > virtual domains on one server, each domain a seaside-driven site > administered by me. How about having one image and having each user install their IAApplication and code. All running under one Seaside server instance. Chris. -- Chris Double chris.double@double.co.nz From seaside@lists.squeakfoundation.org Fri Sep 27 08:00:15 2002 From: seaside@lists.squeakfoundation.org (Cees de Groot) Date: 27 Sep 2002 09:00:15 +0200 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading References: Message-ID: Avi Bryant said: >This would certainly all be possible, although I don't know of any hosting >providers actively supporting Squeak. > With a VM that heats up your processors, no wonder ;-). Seriously: I'm hosting Squeak on user-mode-linux boxen (you get the root password), that's the most flexible, most secure (for me ;-)) way to set this up. With multiple VM's running alongside on a single box, you run into the problem that Squeak server sockets cannot bind to a single address, so there's no way that multiple Squeak VM's all share port 80 (like I routinely do with other stuff). I'd fixed it long ago, if it weren't for the fact that one should fix it across all the platforms and my MacOS and Windows socket programming is rusty (let alone that I lack the hardware to test it). I do have a hack for VisualWorks that lets you start a (suid root) VM as a normal user and get to create a server socket on port 80, so that wouldn't pose a problem. Therefore, my user-mode-linux solution. However, that's a costly solution (somewhere between 50-100 euro per month). Probably more expensive than a dedicated rack box in some big colo center, although the user-mode-linux machine won't break if the hardware goes down (just reboot on a different machine - neat, not? :-)). Image size is not a big issue: the unused portions just get swapped out and swap is extremely cheap. >> Also, is there a cgi version of squeak? > >Squeak isn't a very good fit with CGI - better would be GNU Smalltalk or >Ruby, which have much lower startup time and process overhead. Squeak >makes more sense for long running application servers (closer to the Java >Servlet model than to CGI). > I'd expected you to give a FastCGI/mod_lisp answer here... Anyway, in the interest of Squeak diversification, I think it would be an interesting experiment to build a server VM that a) would startup with a built-in VNC server, b) would allow the user to open just a single, specified, server socket (so that the user's can't 'steal' each other's sockets). Under these conditions, hosting Squeak boxen would be very much possible for a hosting provider (moi) and probably not too expensive. -- Cees de Groot http://www.cdegroot.com GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Cogito ergo evigilo From seaside@lists.squeakfoundation.org Fri Sep 27 08:03:07 2002 From: seaside@lists.squeakfoundation.org (Cees de Groot) Date: 27 Sep 2002 09:03:07 +0200 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi References: <20020927022021.3F9679377B@server2.fastmail.fm> Message-ID: Chris Double said: >How about having one image and having each user install their >IAApplication and code. All running under one Seaside server instance. > You need to protect the users from each other. There is sandboxing code for Squeak (sorry, no URL handy), but it hasn't been updated and thoroughly verified. However, it might be enough for 'friendly' users. (until you chance your business model so that you now suddenly have users you don't know - happened to me with an Apache setup which cost me a year of slowly refactoring the configuration while keeping hundreds of existing sites running. I'll never make that mistake again). -- Cees de Groot http://www.cdegroot.com GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Cogito ergo evigilo From seaside@lists.squeakfoundation.org Fri Sep 27 08:20:09 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Fri, 27 Sep 2002 00:20:09 -0700 (PDT) Subject: [Seaside] Seaside hosting questions - multiple sites, uploading In-Reply-To: Message-ID: On 27 Sep 2002, Cees de Groot wrote: > >Squeak isn't a very good fit with CGI - better would be GNU Smalltalk or > >Ruby, which have much lower startup time and process overhead. Squeak > >makes more sense for long running application servers (closer to the Java > >Servlet model than to CGI). > > > I'd expected you to give a FastCGI/mod_lisp answer here... Same thing, no? Only difference is whether you have Apache forwarding requests to the long-running process or have it handle HTTP directly... amounts to the same thing in terms of development style, anyway. > Anyway, in the interest of Squeak diversification, I think it would be an > interesting experiment to build a server VM that a) would startup with > a built-in VNC server, b) would allow the user to open just a single, > specified, server socket (so that the user's can't 'steal' each other's > sockets). Under these conditions, hosting Squeak boxen would be very much > possible for a hosting provider (moi) and probably not too expensive. Yes, that would be very cool. Do we need to add "c) doesn't make excessive system calls" or do you have the gettimeofday() thing worked out? From seaside@lists.squeakfoundation.org Fri Sep 27 09:03:51 2002 From: seaside@lists.squeakfoundation.org (Julian Fitzell) Date: Fri, 27 Sep 2002 01:03:51 -0700 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading squeak images and cgi References: <20020927022021.3F9679377B@server2.fastmail.fm> Message-ID: <3D9410E7.605@beta4.com> Cees de Groot wrote: [...] > (until you chance your business model so that you now suddenly have users you > don't know - happened to me with an Apache setup which cost me a year of > slowly refactoring the configuration while keeping hundreds of existing sites > running. I'll never make that mistake again). Ugh... tell me about it. Nothing like trying to beef up *your* security without crippling existing applications that you have no control over. Ick... Julian -- julian@beta4.com Beta4 Productions (http://www.beta4.com) From seaside@lists.squeakfoundation.org Fri Sep 27 21:12:29 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Fri, 27 Sep 2002 13:12:29 -0700 Subject: [Seaside] Apache integration problem Message-ID: <731207DA-D255-11D6-BEAA-000393814416@phasecraft.com> I'm running Mac OS X. I have mod_lisp installed (I believe) correctly -> mod_lisp.so compiled, made the changes to the httpd.conf file, restarted apache. Everything looks fine. Note: After adding the mod_lisp entries to httpd.conf file, I added this: LispServer localhost 3000 "seaside" SetHandler lisp-handler I launch Squeak (I have Seaside .94, Comanche4.9 and Borges installed). I execute "IAModLisp startOn: 3000." When I point my browser at http://127.0.0.1/seaside/minesweeper, I get an internal server error. In the apache error log I find: "statfs failed because: No such file or directory". Any ideas? Thanks, Derek Phasecraft: Smarter Web Development. Experts in web design, databases, flash design, multi-lingual sites, branding, marketing and web hosting. phone: 604-874-6463 mailto:info@phasecraft.com http://www.phasecraft.com From seaside@lists.squeakfoundation.org Fri Sep 27 21:46:06 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Fri, 27 Sep 2002 13:46:06 -0700 (PDT) Subject: [Seaside] Apache integration problem In-Reply-To: <731207DA-D255-11D6-BEAA-000393814416@phasecraft.com> Message-ID: On Fri, 27 Sep 2002, Derek Brans wrote: > I launch Squeak (I have Seaside .94, Comanche4.9 and Borges installed). All three? I tend to keep my Seaside .94 images separate from my Borges images. Which are you actually using? > When I point my browser at http://127.0.0.1/seaside/minesweeper, I get > an internal server error. In the apache error log I find: "statfs > failed because: No such file or directory". Interesting. I've never seen that error before. Do you know if Squeak is being contacted at all (eg, put a halt in IAModLisp somewhere...)? Personally, I've started using mod_proxy rather than mod_lisp. Just set up Comanche as normal on port 8000, and then add ProxyPass /seaside http://foo.com:8000/seaside ProxyPassReverse /seaside http://foo.com:8000/seaside to your httpd.conf (I think those are the right commands, anyway). Avi From seaside@lists.squeakfoundation.org Fri Sep 27 22:08:47 2002 From: seaside@lists.squeakfoundation.org (Cees de Groot) Date: 27 Sep 2002 23:08:47 +0200 Subject: [Seaside] Seaside hosting questions - multiple sites, uploading References: Message-ID: Avi Bryant said: >Same thing, no? Only difference is whether you have Apache forwarding >requests to the long-running process or have it handle HTTP directly... >amounts to the same thing in terms of development style, anyway. > The advantages are that a) you can do some URL mapping to static content (e.g. '/images/' to a directory and b) you can pass requests on to a different port then 80 which solves the 'Squeak-binds-to-all-addresses' problem (it doesn't solve the problem that your users still can do harm to each other by binding to other-than-assigned-ports). >Yes, that would be very cool. Do we need to add "c) doesn't make >excessive system calls" or do you have the gettimeofday() thing worked >out? > swiki.squeakfoundation.org has used 5737 minutes of CPU time (user-mode Linux on a dual Xeon 700), and I think it has been running since June 30, so that's almost exactly three months. It's a VM I built from 3.2-4743 with the itimer thingy, I think it's entirely ok to use it on a server like that. -- Cees de Groot http://www.cdegroot.com GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Cogito ergo evigilo From seaside@lists.squeakfoundation.org Sat Sep 28 12:54:21 2002 From: seaside@lists.squeakfoundation.org (Cees de Groot) Date: 28 Sep 2002 13:54:21 +0200 Subject: [Seaside] Apache integration problem References: <731207DA-D255-11D6-BEAA-000393814416@phasecraft.com> Message-ID: Avi Bryant said: >ProxyPass /seaside http://foo.com:8000/seaside >ProxyPassReverse /seaside http://foo.com:8000/seaside > >to your httpd.conf (I think those are the right commands, anyway). > They are the right commands. The showstopper for me is that all requests at the seaside-side will appear to come from the Apache host, which makes custom logging, load-balancing-with-ip-based-session-affinity, and all sort of similar neat ideas useless. -- Cees de Groot http://www.cdegroot.com GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Cogito ergo evigilo From seaside@lists.squeakfoundation.org Sat Sep 28 19:20:04 2002 From: seaside@lists.squeakfoundation.org (Colin Putney) Date: Sat, 28 Sep 2002 11:20:04 -0700 Subject: [Seaside] Apache integration problem In-Reply-To: Message-ID: On Saturday, September 28, 2002, at 04:54 AM, Cees de Groot wrote: > Avi Bryant said: >> ProxyPass /seaside http://foo.com:8000/seaside >> ProxyPassReverse /seaside http://foo.com:8000/seaside >> >> to your httpd.conf (I think those are the right commands, anyway). >> > They are the right commands. The showstopper for me is that all > requests at > the seaside-side will appear to come from the Apache host, which makes > custom > logging, load-balancing-with-ip-based-session-affinity, and all sort of > similar neat ideas useless. That's not really a show stopper. A lot of that stuff could be done on the Apache side. Apache's pretty flexible about logging, for example; you can structure your log files any way you like, log to a database, etc. It'd be pretty easy to do load balancing between Seaside servers using mod_rewrite. I'd prefer load balancing based on the Seaside session key, but basing it on IP would possible as well. On the other hand, if you really need to do it in Seaside, you could use mod_rewrite to pass the client's IP address (or other information) to Seaside in the URL. I also noticed your mention of FastCGI. That would be another good option for integrating with Apache, if someone found the time to write an IAConnection for it. I did poke around in Tomas Vanak's implementation, called FasTalk, but there wasn't a clear line between the FastCGI stuff and his application server framework, and I didn't have time to dig deeper. For now, mod_proxy does a goood job. Cheers, Colin From seaside@lists.squeakfoundation.org Sun Sep 29 02:36:20 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Sat, 28 Sep 2002 18:36:20 -0700 Subject: [Seaside] I want to help! In-Reply-To: Message-ID: Hi all, I want to help with implementing seaside. I'm a beginning smalltalker. Is there a list of things to do or wish list (maybe with some "difficulty" ratings)? Also, can someone explain the best way to submit code? Checkout code? Update code? Do we want a website to facilitate collaboration and documentation? I would like to see that happen, and I have free time to contribute. Just need a bit of direction. Derek From seaside@lists.squeakfoundation.org Sun Sep 29 03:46:05 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Sat, 28 Sep 2002 19:46:05 -0700 (PDT) Subject: [Seaside] I want to help! In-Reply-To: Message-ID: On Sat, 28 Sep 2002, Derek Brans wrote: > Hi all, > > I want to help with implementing seaside. I'm a beginning smalltalker. > Is there a list of things to do or wish list (maybe with some > "difficulty" ratings)? Here's my wish list: 1) Documentation, especially of the new (Borges based) code. I'll probably try my hand at some new tutorials in the coming weeks, but if anyone else wants to chip in, great. 2) A library of useful components. This probably isn't something that's going to come out of a concerted effort, but rather from people cleaning up and contributing stuff they develop for their applications. For now, a wiki page will probably suffice to collect these. > Also, can someone explain the best way to submit code? Checkout code? > Update code? There's a "seaside" project on sourceforge; the latest code can always be checked out of CVS. Code should be contributed as changesets posted to the list. > Do we want a website to facilitate collaboration and documentation? I > would like to see that happen, and I have free time to contribute. Just > need a bit of direction. The wiki is a good starting point for this. Cheers, Avi From seaside@lists.squeakfoundation.org Sun Sep 29 06:58:36 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Sat, 28 Sep 2002 22:58:36 -0700 Subject: [Seaside] Developer section on Swiki Message-ID: <7E926142-D370-11D6-BEAA-000393814416@phasecraft.com> Hey all, I've added a "Developer" section to the swiki, linked to from http://swiki.squeakfoundation.org/sea/2. The highlight is a "Projects" section with a list of possible project and a Template Project. It's not ready to be populated. I'm looking for comments and for people to make changes / corrections /additions to the list of projects and the template project. Please send your comments and make corrections by the end of the weekend, so we can start creating the project pages. Thanks, Derek Phasecraft: Smarter Web Development. Experts in web design, databases, flash design, multi-lingual sites, branding, marketing and web hosting. phone: 604-874-6463 mailto:info@phasecraft.com http://www.phasecraft.com From seaside@lists.squeakfoundation.org Sun Sep 29 09:08:48 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Sun, 29 Sep 2002 01:08:48 -0700 (PDT) Subject: [Seaside] Developer section on Swiki In-Reply-To: <7E926142-D370-11D6-BEAA-000393814416@phasecraft.com> Message-ID: Hi Derek, > I've added a "Developer" section to the swiki, linked to from > http://swiki.squeakfoundation.org/sea/2. The highlight is a "Projects" > section with a list of possible project and a Template Project. This looks pretty good. Your proposed list of projects is pretty interesting - what would SqueakNuke be, for example? (I have only a vague idea of what PHPNuke is...). > It's not ready to be populated. I'm looking for comments and for people > to make changes / corrections /additions to the list of projects and the > template project. Please send your comments and make corrections by the > end of the weekend, so we can start creating the project pages. Note that there's already the bugs.beta4.com bug tracker which could be linked to from the project pages rather than dealing with that stuff in the wiki; I'm happy to create projects on Mantis for whoever wants them. As for the list of projects, I'd add View Library to the core - I'm personally as interested at this point in a set of high level widgets and layout managers as I am in a template engine. It's also something that I have few preconceived notions about, so it might make a good community project if others were interested. Derek, it's neat to have someone thinking about this kind of infrastructure; I'm curious to see whether it gets enough use to warrant the work you're putting into it ;-). Cheers, Avi From seaside@lists.squeakfoundation.org Sun Sep 29 15:45:58 2002 From: seaside@lists.squeakfoundation.org (Derek Brans) Date: Sun, 29 Sep 2002 07:45:58 -0700 Subject: [Seaside] Developer section on Swiki In-Reply-To: Message-ID: <2A6E4820-D3BA-11D6-BEAA-000393814416@phasecraft.com> Hi Avi, > This looks pretty good. Your proposed list of projects is pretty > interesting - what would SqueakNuke be, for example? (I have only a > vague > idea of what PHPNuke is...). PHPNuke, or its more advanced offspring: PostNuke, is a web portal system, all setup to handle: users, groups, security, ratings, comments, user emails, news, xmlrpc, polls, downloads and a plethora of other modules. Written in PHP with a mySQL backend. The site is installed and administered through a web interface. Checkout http://www.postnuke.com for a more info. > > As for the list of projects, I'd add View Library to the core - I'm > personally as interested at this point in a set of high level > widgets and layout managers as I am in a template engine. It's also > something that I have few preconceived notions about, so it might make a > good community project if others were interested. > > Derek, it's neat to have someone thinking about this kind of > infrastructure; I'm curious to see whether it gets enough use to warrant > the work you're putting into it ;-). > My biggest handicap to helping more is the lack of Squeak and Seaside documentation. Even code comments would be useful. Has commenting code gone out of style recently? What does the "IA" prefix mean? How do you pronounce Borges and what does it mean? The tutorials have been excellent, fun and instructive with great examples, but we need lots more. Avi, if you want to sit down for a couple hours and explain some stuff to me, I will gladly help with documentation. Better documentation means more people know what they are doing and can help out. Take care, Derek Phasecraft: Smarter Web Development. Experts in web design, databases, flash design, multi-lingual sites, branding, marketing and web hosting. phone: 604-874-6463 mailto:info@phasecraft.com http://www.phasecraft.com From seaside@lists.squeakfoundation.org Sun Sep 29 19:19:41 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Sun, 29 Sep 2002 11:19:41 -0700 (PDT) Subject: [Seaside] Developer section on Swiki In-Reply-To: <2A6E4820-D3BA-11D6-BEAA-000393814416@phasecraft.com> Message-ID: On Sun, 29 Sep 2002, Derek Brans wrote: > My biggest handicap to helping more is the lack of Squeak and Seaside > documentation. Even code comments would be useful. Has commenting code > gone out of style recently? Yes: http://www.xprogramming.com/Practices/PracComments.html ;-) > What does the "IA" prefix mean? Officially, it stands for "Interface Aubergines", since Seaside is the web interface part of the mythical Squeak Enterprise Aubergines project. As it happens, Seaside grew out of an earlier framework I wrote called Iowa, and IA is the postal abbrevation for that state. Seaside 2.0 classes have a WA prefix, which I suppose stands for Web Aubergine. Any resemblance to NeXT's prefixing scheme for WebObjects is purely coincidental. > How do you pronounce Borges and what does it mean? "bor-hez" would be a vague approximation. Jorge Luis Borges was an Argentinian writer; I refer you to his story "The Garden of Forking Paths", which, written before either the web browser or the "many worlds" theory of quantum mechanics, describes what I see as the most interesting and challenging aspect of web application development: In all fiction, when a man is faced with alternatives he chooses one at the expense of the others. In the almost unfathomable Ts'ui Pen, he chooses - simultaneously - all of them. He thus _creates_ various futures, various times which start others that will in turn branch out and bifurcate in other times... The main purpose of the Borges layer of Seaside 2.0 is, of course, to support the parallel, forking control flow inherent in the web environment through the use of continuations and state snapshotting. > The tutorials have been > excellent, fun and instructive with great examples, but we need lots > more. Avi, if you want to sit down for a couple hours and explain some > stuff to me, I will gladly help with documentation. Better > documentation means more people know what they are doing and can help > out. I'm acutely aware of the need for more documentation. I hope to spend some of next week writing some; if you're willing to contribute some time as well, great. Cheers, Avi From seaside@lists.squeakfoundation.org Sun Sep 29 23:28:34 2002 From: seaside@lists.squeakfoundation.org (Steve Waring) Date: Mon, 30 Sep 2002 08:28:34 +1000 Subject: [Seaside] Apache integration problem References: Message-ID: <007901c26807$8d2ea7a0$0100a8c0@discosel> Hi Colin, > I also noticed your mention of FastCGI. That would be another good > option for integrating with Apache. I have a FastCGI implementation for Dolphin at: http://www.dolphinharbor.org/dh/projects/fs/index.html There is an existing port to VW3 and a port to VW7 underway. If you are interested in porting it to Squeak, please email me, and I will send through some background info. Thanks, Steve ========== Steve Waring swaring@ozemail.com.au http://www.dolphinharbor.org/dh/harbor/steve.html From seaside@lists.squeakfoundation.org Mon Sep 30 13:04:13 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Mon, 30 Sep 2002 14:04:13 +0200 Subject: [Seaside] uploads.. how? Message-ID: <20020930120413.GA8326@linalco.com> Another seaside 0.94 day, another question :/ html ^ #(html (form sea:id: add enctype: 'multipart/form-data' (input type: file name '@file') (input type: submit) )) but it compains that: IAFile(Object)>>doesNotUnderstand: self an IAFile aMessage a Message with selector: #isEmpty and arguments: #() I'v read past threads, and I'm under the impression that uploads were included in 0.94.. so what am I doing wrong? -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Mon Sep 30 16:53:22 2002 From: seaside@lists.squeakfoundation.org (Alain Fischer) Date: Mon, 30 Sep 2002 17:53:22 +0200 Subject: [Seaside] uploads.. how? In-Reply-To: <20020930120413.GA8326@linalco.com> Message-ID: Hi Ragnar, To use file upload, you need to make a component: IAComponent subclass: #AFiUploadFilePage instanceVariableNames: 'uploadFile ' classVariableNames: '' poolDictionaries: '' category: '' html ^ '

=
' upload "Here do what you want with: uploadFile fileName uploadFile contents" The bad things is that the fileName returned is fully dependant of the=20= browser and the plateform used: different kind of path separators, sometime full=20= path, sometime only the filename. Ahhhhh the joy of web development ;-) To get a correct fileName, I used the following (the most current path=20= separators): (uploadFile fileName findTokens: '/\:') last which should work on more current cases. Have a nice day. Alain Le Lundi 30 septembre 2002, =E0 02:04 , Ragnar Hojland Espinosa a =E9crit = : > Another seaside 0.94 day, another question :/ > > html > ^ #(html (form sea:id: add enctype: 'multipart/form-data' > (input type: file name '@file') > (input type: submit) > )) > > but it compains that: > > IAFile(Object)>>doesNotUnderstand: > > self an IAFile > aMessage a Message with selector: #isEmpty and arguments: = #() > > I'v read past threads, and I'm under the impression that uploads were > included in 0.94.. so what am I doing wrong? > -- > Ragnar Hojland - Project Manager > Linalco "Especialistas Linux y en Software Libre" > Tel: +34-91-5970074 Fax: +34-91-5970083 > _______________________________________________ > Seaside mailing list > Seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/listinfo/seaside > From seaside@lists.squeakfoundation.org Mon Sep 30 17:09:20 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Mon, 30 Sep 2002 18:09:20 +0200 Subject: [Seaside] uploads.. how? In-Reply-To: References: <20020930120413.GA8326@linalco.com> Message-ID: <20020930160920.GA10765@linalco.com> On Mon, Sep 30, 2002 at 05:53:22PM +0200, Alain Fischer wrote: Unfortunately that doesn't help, I get the same error.. which is what I would expect as I already tried what you write verbatim from an older post of yours :) What am I missing? > Hi Ragnar, > > To use file upload, you need to make a component: > > IAComponent subclass: #AFiUploadFilePage > instanceVariableNames: 'uploadFile ' > classVariableNames: '' > poolDictionaries: '' > category: '' > > html > ^ '
>
> >
' > > upload > "Here do what you want with: > uploadFile fileName > uploadFile contents" > > The bad things is that the fileName returned is fully dependant of the > browser > and the plateform used: different kind of path separators, sometime full > path, > sometime only the filename. Ahhhhh the joy of web development ;-) > > To get a correct fileName, I used the following (the most current path > separators): > (uploadFile fileName findTokens: '/\:') last > which should work on more current cases. > > Have a nice day. > Alain > > > > Le Lundi 30 septembre 2002, ? 02:04 , Ragnar Hojland Espinosa a ?crit : > > >Another seaside 0.94 day, another question :/ > > > >html > > ^ #(html (form sea:id: add enctype: 'multipart/form-data' > > (input type: file name '@file') > > (input type: submit) > > )) > > > >but it compains that: > > > > IAFile(Object)>>doesNotUnderstand: > > > > self an IAFile > > aMessage a Message with selector: #isEmpty and arguments: #() > > > >I'v read past threads, and I'm under the impression that uploads were > >included in 0.94.. so what am I doing wrong? > >-- > >Ragnar Hojland - Project Manager > >Linalco "Especialistas Linux y en Software Libre" > >Tel: +34-91-5970074 Fax: +34-91-5970083 > >_______________________________________________ > >Seaside mailing list > >Seaside@lists.squeakfoundation.org > >http://lists.squeakfoundation.org/listinfo/seaside > > > > _______________________________________________ > Seaside mailing list > Seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/listinfo/seaside -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083 From seaside@lists.squeakfoundation.org Mon Sep 30 17:28:26 2002 From: seaside@lists.squeakfoundation.org (Avi Bryant) Date: Mon, 30 Sep 2002 09:28:26 -0700 (PDT) Subject: [Seaside] uploads.. how? In-Reply-To: <20020930120413.GA8326@linalco.com> Message-ID: On Mon, 30 Sep 2002, Ragnar Hojland Espinosa wrote: > IAFile(Object)>>doesNotUnderstand: > > self an IAFile > aMessage a Message with selector: #isEmpty and arguments: #() I'm betting the rest of the walkback leads to IARequest>>valueForField:, right? This looks like it's a bug introduced when I adapted Seaside for Comanche 5.0. One way to (probably) fix it would be to change the last line of IAKom>>processMultipartFields: to read ... aRequest postFields at: chunk fieldName put: (Array with: file)]]. The only difference is the addition of the (Array with: ...). Let me know if that works, I don't have time to test it right now. Avi From seaside@lists.squeakfoundation.org Mon Sep 30 17:37:13 2002 From: seaside@lists.squeakfoundation.org (Ragnar Hojland Espinosa) Date: Mon, 30 Sep 2002 18:37:13 +0200 Subject: [Seaside] uploads.. how? In-Reply-To: References: <20020930120413.GA8326@linalco.com> Message-ID: <20020930163713.GA11143@linalco.com> On Mon, Sep 30, 2002 at 09:28:26AM -0700, Avi Bryant wrote: > > On Mon, 30 Sep 2002, Ragnar Hojland Espinosa wrote: > > > IAFile(Object)>>doesNotUnderstand: > > > > self an IAFile > > aMessage a Message with selector: #isEmpty and arguments: #() > > I'm betting the rest of the walkback leads to IARequest>>valueForField:, > right? Right on target. > This looks like it's a bug introduced when I adapted Seaside for Comanche > 5.0. One way to (probably) fix it would be to change the last line of > IAKom>>processMultipartFields: to read > > ... > aRequest postFields at: chunk fieldName put: (Array with: file)]]. > > The only difference is the addition of the (Array with: ...). > > Let me know if that works, I don't have time to test it right now. Yep. Works all nice, thanks. My walls and my head are grateful ;) -- Ragnar Hojland - Project Manager Linalco "Especialistas Linux y en Software Libre" Tel: +34-91-5970074 Fax: +34-91-5970083