[Jifty-commit] r1439 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Jul 2 20:39:52 EDT 2006


Author: audreyt
Date: Sun Jul  2 20:39:52 2006
New Revision: 1439

Modified:
   jifty/trunk/lib/Jifty/Web.pm

Log:
* To submit a Jifty::Action::Redirect, we don't need to serialize a continuation,
  unlike any other kind of actions.

Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Web.pm	Sun Jul  2 20:39:52 2006
@@ -566,11 +566,14 @@
 
     my @actions = Jifty->web->request->actions;
 
-    if (   $self->response->results
+    # To submit a Jifty::Action::Redirect, we don't need to serialize a continuation,
+    # unlike any other kind of actions.
+    if (  (grep { not $_->action_class->isa('Jifty::Action::Redirect') }
+                values %{{ $self->response->results }})
         or $self->request->state_variables
         or $self->{'state_variables'}
         or $self->request->continuation
-        or @actions )
+        or grep { $_->active and not $_->class->isa('Jifty::Action::Redirect') } @actions )
     {
         my $request = Jifty::Request->new();
         $request->add_state_variable( key => $_->key, value => $_->value )


More information about the Jifty-commit mailing list