[Jifty-commit] r1240 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jun 10 15:43:13 EDT 2006
Author: jesse
Date: Sat Jun 10 15:43:12 2006
New Revision: 1240
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Handler.pm
Log:
r12455 at pinglin: jesse | 2006-06-10 15:42:19 -0400
* Added a stash to Jifty::Handle. The stash persists across the life of the request
Modified: jifty/trunk/lib/Jifty/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handler.pm (original)
+++ jifty/trunk/lib/Jifty/Handler.pm Sat Jun 10 15:43:12 2006
@@ -42,7 +42,7 @@
-__PACKAGE__->mk_accessors(qw(mason dispatcher static_handler cgi apache));
+__PACKAGE__->mk_accessors(qw(mason dispatcher static_handler cgi apache stash));
=head2 new
@@ -176,6 +176,8 @@
$self->cgi( $args{cgi} );
$self->apache( HTML::Mason::FakeApache->new( cgi => $self->cgi ) );
+ # Build a new stash for the life of this request
+ $self->stash({});
local $HTML::Mason::Commands::JiftyWeb = Jifty::Web->new();
Jifty->web->request( Jifty::Request->new()->fill( $self->cgi ) );
@@ -213,6 +215,7 @@
Jifty::Record->flush_cache if Jifty::Record->can('flush_cache');
$self->cgi(undef);
$self->apache(undef);
+ $self->stash(undef);
}
1;
More information about the Jifty-commit
mailing list