[Jifty-commit] r6840 - jifty/trunk/lib/Jifty/Plugin
Jifty commits
jifty-commit at lists.jifty.org
Wed Apr 22 06:50:29 EDT 2009
Author: sartak
Date: Wed Apr 22 06:49:48 2009
New Revision: 6840
Modified:
jifty/trunk/lib/Jifty/Plugin/RequestInspector.pm
Log:
get_plugin_data
Modified: jifty/trunk/lib/Jifty/Plugin/RequestInspector.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/RequestInspector.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/RequestInspector.pm Wed Apr 22 06:49:48 2009
@@ -30,9 +30,17 @@
sub get_request {
my $self = shift;
- my $id = shift;
+ my $id = shift;
- $requests[$id - 1]; # 1-based
+ return $requests[$id - 1]; # 1-based
+}
+
+sub get_plugin_data {
+ my $self = shift;
+ my $id = shift;
+ my $plugin = shift;
+
+ return $self->get_request($id)->{plugin_data}{$plugin};
}
sub new_request_inspection {
More information about the Jifty-commit
mailing list