Sending a continuation link via email in Seaside-3.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Sending a continuation link via email in Seaside-3.0

Yanni Chiu
I'm trying to adapt the "Forgot password" functionality from
SqueakSource for other uses. If you filein the included code, into a
recent Seaside-3.0 image, and go to http://localhost:8080/register,
you'll be shown a dialog, and then a link.

This link would ultimately be sent by email, but for the test cose, it's
just shown to you in the web browser. Copy & paste the link to another
another web browser window. The new web browser waits for a response,
and eventually times out.

Any one have any ideas what's wrong?


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

ZZTemp.st (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Sending a continuation link via email in Seaside-3.0

Julian Fitzell-2
You can't use full continuations like that in Seaside 3.0. You end up
saving the entire context chain, so when you restore it, you end up
trying to return a response to the socket that was being used when you
created the continuation. The stack frames that were set up to handle
the new request get thrown away and the browser will never get a
response.

You could use partial continuations, but can't you just register a
callback and send that URL? You're not really doing anything that
seems to require a continuation...

Julian

On Mon, Oct 18, 2010 at 5:58 AM, Yanni Chiu <[hidden email]> wrote:

> I'm trying to adapt the "Forgot password" functionality from SqueakSource
> for other uses. If you filein the included code, into a recent Seaside-3.0
> image, and go to http://localhost:8080/register, you'll be shown a dialog,
> and then a link.
>
> This link would ultimately be sent by email, but for the test cose, it's
> just shown to you in the web browser. Copy & paste the link to another
> another web browser window. The new web browser waits for a response, and
> eventually times out.
>
> Any one have any ideas what's wrong?
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Sending a continuation link via email in Seaside-3.0

Yanni Chiu
On 18/10/10 7:56 AM, Julian Fitzell wrote:
>
> You could use partial continuations, but can't you just register a
> callback and send that URL? You're not really doing anything that
> seems to require a continuation...

Okay, I'll try that. I was just going with the code that was there in
the squeaksource3 repository, but I was beginning to suspect that the
code there is not fully working yet.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Sending a continuation link via email in Seaside-3.0

Yanni Chiu
On 18/10/10 11:16 AM, Yanni Chiu wrote:
> On 18/10/10 7:56 AM, Julian Fitzell wrote:
>>
>> You could use partial continuations, but can't you just register a
>> callback and send that URL? You're not really doing anything that
>> seems to require a continuation...
>
> Okay, I'll try that. I was just going with the code that was there in
> the squeaksource3 repository, but I was beginning to suspect that the
> code there is not fully working yet.

Changing WAContinuation to WAPartialContinuation yield a stack trace.

Registering a callback and sending that URL - that worked like a charm.
The new code is attached.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

ZZTemp.st (4K) Download Attachment