[Seaside] OSCON "contest"

James Foster Smalltalk at JGFoster.net
Wed Jul 23 05:59:12 UTC 2008

I've edited the following to remove some issues that have been  

On Jul 22, 2008, at 10:03 PM, Philippe Marschall wrote:

>>> - Are you prepared to make courses first class objects?
>> My first couple attempts did take that approach. On further  
>> reflection, it
>> didn't look necessary from the requirements and it required more  
>> typing.
> No, what I meant that they say some of the requirements will be
> announced when the competition starts. This is for example something I
> would do.

I see. Yes, that does seem like an area where they might grow the  
requirements. Good point!

> aRequest accessPath copyFrom: 3 to: aRequest accessPath size
> - I'm not ware of an #accessPath method in WARequest
> - why do exclude the first 3 characters?

Actually, #accessPath is an array (the path string broken by $/), so  
this trims off the first two pieces, #('seaside' 'recipes').

>> Is there an easy way to get access to it [currentRequest] in the  
>> render code?
> self session currentRequest

That makes things much cleaner! Thanks.

>> I saw it in the
>> initialRequest: method, so took it. If I can defer it to the render  
>> code,
>> then I'll move it there.
> The problem is that #initialRequest: is sent only once, that the
> beginning of the session.

Good point, though it probably works okay here since I'm getting a new  
session when a RESTful URL is submitted (I think).

> Cheers
> Philippe

Thanks again,


More information about the seaside mailing list