/[Frey]/trunk/lib/Frey/Pipe.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Pipe.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 518 by dpavlin, Tue Nov 25 00:26:15 2008 UTC revision 519 by dpavlin, Tue Nov 25 17:15:18 2008 UTC
# Line 43  sub as_markup { Line 43  sub as_markup {
43                  warn "# part: '$part'";                  warn "# part: '$part'";
44                  if ( $part =~ m{^([^/]+)/([^\+\?]+)(.*)?$} ) {                  if ( $part =~ m{^([^/]+)/([^\+\?]+)(.*)?$} ) {
45                          my ( $class, $method, $args ) = ( $1, $2, $3 );                          my ( $class, $method, $args ) = ( $1, $2, $3 );
                         push @parts, { $class => { method => $method, args => $args } };  
46                          my $params = $pipe;                          my $params = $pipe;
47                          $params = {} unless defined $params;                          $params = {} unless defined $params;
48                          if ( defined $args ) {                          if ( defined $args ) {
# Line 63  sub as_markup { Line 62  sub as_markup {
62                          my $result = $o->$method;                          my $result = $o->$method;
63                          warn "# result ",length( $result ), " bytes ", ref($result);                          warn "# result ",length( $result ), " bytes ", ref($result);
64    
65                            $self->add_status({ $part => { $class => { method => $method, args => $args } } });
66    
67                          $self->content_type( $o->content_type ) if $o->can('content_type');                          $self->content_type( $o->content_type ) if $o->can('content_type');
68    
69                          $out = $result;                          $out = $result;
# Line 73  sub as_markup { Line 74  sub as_markup {
74                  }                  }
75          }          }
76    
         warn "# pipe ", $self->title, " parts ",dump( @parts );  
         $self->add_status( $_ ) foreach @parts;  
77          return $out;          return $out;
78  }  }
79    

Legend:
Removed from v.518  
changed lines
  Added in v.519

  ViewVC Help
Powered by ViewVC 1.1.26