Re: [Catalyst] process a restored request

2008-01-09 Thread catalyst
> Just a stupid thought...having not look at continuation...
> What if $c->request have freeze/thaw hooks?
... and a way to tell catalyst to unwind processing and start over with the
thawed request.

-- 
Julien Gervais-Bird

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] process a restored request

2008-01-09 Thread catalyst
> Catalyst::Plugin::Continuation should do that. But it appears to be
> broken with the current Catalyst version. Or at least I was not able
> to make it work.

Catalyst::Plugin::Continuation would have been perfect (it even has a test 
case that suits my needs: 
http://search.cpan.org/src/NUFFIN/Catalyst-Plugin-Continuation-0.01/t/05_login_example.t
 ), 
but I haven't been able to make it work either. 

At the moment, I am not comfortable enough with the inner workings of Catalyst 
to fix the module myself. Maybe later...

-- 
Julien Gervais-Bird

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] process a restored request

2008-01-08 Thread catalyst
Hi,
in my application, if a client issues a request after say 30 minutes of 
inactivity, I want to answer his request only after successfull 
authentication.

Ideally, I would simply serialize $c->request in the session, ask for 
authentication, then if successfull restore the stored request to $c and call 
$c->dispatch. But after playing around a bit, it appears not to be that 
simple (the context is stored in the request as '_context', the body seems 
fetched only on-demand, dispatch seems to need some prepare_* methods to be 
called).

I searched the list and only found this proposition for a similar mechanism:
http://lists.scsys.co.uk/pipermail/catalyst/2007-February/012256.html

Am I missing an easier way of doiing this?

Julien Gervais-Bird

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/