[Seaside] [ENH] Session with (lazy) form-based login [with
attachment]
Avi Bryant
avi at beta4.com
Wed Mar 24 19:44:49 CET 2004
On Mar 24, 2004, at 9:08 AM, miso.list at auf.net wrote:
> * the login is lazy in that it occurs only when a component asks for
> 'self session user'. This is easy to change into a session-initial
> login, see the comment in SeasideLoginSession.
That's a neat idea, and shows off Seaside in interesting ways. Thanks.
In terms of implementation, though, the manual swapping of root etc
seems unnecessarily complex. Couldn't you have done this?
SeasideLoginSession>>user
^ user ifNil: [user := root call: SeasideLogin new]
And then in SeasideLogin>>handleLogin, at the end, instead of directly
sending #user: to session, just #answer: the user object.
More information about the Seaside
mailing list