57 |
my ( $html, $default ) = Frey::Action->new( class => $class, params => $params )->params_form; |
my ( $html, $default ) = Frey::Action->new( class => $class, params => $params )->params_form; |
58 |
warn "$class need more params than ",dump( $default ) if $html && $self->debug; # FIXME replace with query |
warn "$class need more params than ",dump( $default ) if $html && $self->debug; # FIXME replace with query |
59 |
|
|
60 |
my $code = '$result = ' . $class . '->new' . dump( %$default ) . '->' . $method . '();'; |
warn "# pipe $part" if $self->debug; |
61 |
warn "# pipe $part -> $code" if $self->debug; |
my $o = $class->new( %$default ); |
62 |
my $result; |
my $result = $o->$method; |
63 |
eval $code; |
warn "# result ",length( $result ), " bytes ", ref($result); |
64 |
die $@ if $@; |
|
65 |
warn "# result ",ref( $result ); |
$self->content_type( $o->content_type ) if $o->can('content_type'); |
66 |
# $out .= qq{<span class="frey-popdown">$part<code>} . dump( $result ) . '</code><span><hr>'; |
|
67 |
$out = $result; |
$out = $result; |
68 |
$pipe = { $method => $result }; |
$pipe = { $method => $result }; |
69 |
} else { |
} else { |
71 |
} |
} |
72 |
} |
} |
73 |
|
|
74 |
warn "# pipe ", $self->title, dump( $self->status ); |
warn "# pipe ", $self->title; |
75 |
|
|
76 |
return $out; |
return $out; |
77 |
} |
} |