--- trunk/lib/Frey/Pipe.pm 2008/11/19 04:13:36 450 +++ trunk/lib/Frey/Pipe.pm 2008/11/19 04:14:12 451 @@ -57,13 +57,13 @@ my ( $html, $default ) = Frey::Action->new( class => $class, params => $params )->params_form; warn "$class need more params than ",dump( $default ) if $html && $self->debug; # FIXME replace with query - my $code = '$result = ' . $class . '->new' . dump( %$default ) . '->' . $method . '();'; - warn "# pipe $part -> $code" if $self->debug; - my $result; - eval $code; - die $@ if $@; - warn "# result ",ref( $result ); -# $out .= qq{$part} . dump( $result ) . '
'; + warn "# pipe $part" if $self->debug; + my $o = $class->new( %$default ); + my $result = $o->$method; + warn "# result ",length( $result ), " bytes ", ref($result); + + $self->content_type( $o->content_type ) if $o->can('content_type'); + $out = $result; $pipe = { $method => $result }; } else { @@ -71,7 +71,7 @@ } } - warn "# pipe ", $self->title, dump( $self->status ); + warn "# pipe ", $self->title; return $out; }