/[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 952 by dpavlin, Tue Jan 6 13:18:43 2009 UTC revision 953 by dpavlin, Tue Jan 6 23:44:59 2009 UTC
# Line 54  sub as_markup { Line 54  sub as_markup {
54                                  map {                                  map {
55                                          my ( $name, $value ) = ( $1, $2 ) if m{^([^=]+)=(.+)$} || confess "can't parse '$_'";                                          my ( $name, $value ) = ( $1, $2 ) if m{^([^=]+)=(.+)$} || confess "can't parse '$_'";
56                                          $params->{$name} = $value;                                          $params->{$name} = $value;
57                                  } split(/\s*\+\s/, $args)                                  } split(/[;&]/, $args)
58                          }                          }
59    
60                          my ( $html, $default ) = Frey::Action->new( class => $class, params => $params )->params_form;                          my ( $html, $default ) = Frey::Action->new( class => $class, params => $params )->params_form;
# Line 90  sub as_markup { Line 90  sub as_markup {
90                          $out = $result;                          $out = $result;
91                          $method =~ s{^as_}{};                          $method =~ s{^as_}{};
92                          $pipe = { $method => $result };                          $pipe = { $method => $result };
93                            push @parts, { $class . '->' . $method => $result };
94                  } else {                  } else {
95                          die "don't know what to do with '$part' from ",$self->pipe;                          die "don't know what to do with '$part' from ",$self->pipe;
96                  }                  }
97          }          }
98    
99          $out = $self->error("$out not scalar" . $self->html_dump($out) ) if ref $out;          $pipe = $self->pipe;
100    
101            $out = $self->error(
102                    qq|<a href="$pipe" title="copy pipe"><tt>$pipe</tt></a> = $out not scalar\n|
103                    . $self->html_dump($out)
104            ) if ref $out;
105    
106          return $out;          return $out;
107  }  }

Legend:
Removed from v.952  
changed lines
  Added in v.953

  ViewVC Help
Powered by ViewVC 1.1.26