/[Frey]/trunk/lib/Frey/Server.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/Server.pm

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

revision 506 by dpavlin, Thu Nov 20 13:57:38 2008 UTC revision 507 by dpavlin, Tue Nov 25 00:26:15 2008 UTC
# Line 134  sub main { Line 134  sub main {
134                          my $class = rest2class $1;                          my $class = rest2class $1;
135                          warn "# run $path -> $class $2";                          warn "# run $path -> $class $2";
136                          $run->{format} = $3 if $3;                          $run->{format} = $3 if $3;
137                            $params{request_url} = $req->request->url;
138                          $f = Frey::Run->new( class => $class, params => \%params, run => $2, %$run );                          $f = Frey::Run->new( class => $class, params => \%params, run => $2, %$run );
139                  } elsif (                  } elsif (
140                          $path =~ m{/([^/]+)/?$}                          $path =~ m{/([^/]+)/?$}
# Line 146  sub main { Line 147  sub main {
147                  }                  }
148    
149                  if ( $f ) {                  if ( $f ) {
150                          push @{ $f->status }, { req => $req };                          $f->add_status( { req => $req } );
151                          $req->print( $f->html );                          $req->print( $f->html );
152                  } else {                  } else {
153                          warn "# can't call request on nothing!";                          warn "# can't call request on nothing!";

Legend:
Removed from v.506  
changed lines
  Added in v.507

  ViewVC Help
Powered by ViewVC 1.1.26