[Jifty-commit] r7623 - jifty/trunk/lib/Jifty/Web
Jifty commits
jifty-commit at lists.jifty.org
Tue Nov 17 20:08:45 EST 2009
Author: sartak
Date: Tue Nov 17 20:08:43 2009
New Revision: 7623
Modified:
jifty/trunk/lib/Jifty/Web/FileUpload.pm
Log:
new_from_fh helper method
Modified: jifty/trunk/lib/Jifty/Web/FileUpload.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/FileUpload.pm (original)
+++ jifty/trunk/lib/Jifty/Web/FileUpload.pm Tue Nov 17 20:08:43 2009
@@ -86,5 +86,18 @@
return $self;
}
+=head2 new_from_fh Fh
+
+Convenience method, since the other bits can be gleaned from the L<Fh> object.
+
+=cut
+
+sub new_from_fh {
+ my $self = shift;
+ my $fh = shift;
+
+ $self->new(filehandle => $fh);
+}
+
1;
More information about the Jifty-commit
mailing list