[Jifty-commit] jifty branch, plack, updated. 547edb43b781403fcd18a63c36c5040df2dcc1b7

Jifty commits jifty-commit at lists.jifty.org
Wed Jan 6 00:52:15 EST 2010


The branch, plack has been updated
       via  547edb43b781403fcd18a63c36c5040df2dcc1b7 (commit)
      from  2908cec6ddbc38c51e63038c4b828f03af310fec (commit)

Summary of changes:
 lib/Jifty/Plugin/Compat.pm |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 547edb43b781403fcd18a63c36c5040df2dcc1b7
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Jan 6 00:52:00 2010 -0500

    Add a ->header_in and ->params to compat plugin

diff --git a/lib/Jifty/Plugin/Compat.pm b/lib/Jifty/Plugin/Compat.pm
index 68c86e6..23fda1c 100644
--- a/lib/Jifty/Plugin/Compat.pm
+++ b/lib/Jifty/Plugin/Compat.pm
@@ -19,6 +19,11 @@ wrap 'Jifty::View::Mason::Handler::new',
 package Jifty::Plugin::Compat::Apache;
 use Carp;
 
+sub header_in {
+    my $class = shift;
+    return Jifty->web->request->header(@_);
+}
+
 sub header_out {
     my ($class, $key, $val) = @_;
     if ($key eq 'Status') {
@@ -48,5 +53,10 @@ sub AUTOLOAD {
     croak "compat apache does not handle $AUTOLOAD";
 }
 
+sub params {
+    my $class = shift;
+    return %{ Jifty->web->request->parameters };
+}
+
 1;
 

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list