[Jifty-commit] r1292 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Jun 14 19:26:11 EDT 2006
Author: alexmv
Date: Wed Jun 14 19:26:08 2006
New Revision: 1292
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Continuation.pm
Log:
r13942 at zoq-fot-pik: chmrr | 2006-06-14 19:24:56 -0400
* Continuation calls go all the way back to the dispatcher, so before
blocks can run again
Modified: jifty/trunk/lib/Jifty/Continuation.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Continuation.pm (original)
+++ jifty/trunk/lib/Jifty/Continuation.pm Wed Jun 14 19:26:08 2006
@@ -31,8 +31,8 @@
is run, it restores the request that it has saved away into it, and
pulls into that request the values any return values that were
specified when it was created. The continuations code block, if any,
-is then called, and then the filled-in request is then run
-L<Jifty::Web/handle_request>.
+is then called, and then the filled-in request is then passed to the
+L<Jifty::Dispatcher>.
=cut
@@ -211,9 +211,12 @@
$self->code->(Jifty->web->request)
if $self->code;
- # Enter the request in the continuation, and handle it
+ # Enter the request in the continuation, and handle it. This
+ # will possibly cause 'before' blocks to run more than once,
+ # but is slightly preferrable to them never running.
Jifty->web->request(dclone($self->request));
- Jifty->web->handle_request();
+ Jifty->handler->dispatcher->handle_request;
+ Jifty::Dispatcher::_abort;
}
}
More information about the Jifty-commit
mailing list