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

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

revision 652 by dpavlin, Fri Nov 28 19:19:25 2008 UTC revision 653 by dpavlin, Sun Nov 30 23:49:32 2008 UTC
# Line 57  has 'format' => ( Line 57  has 'format' => (
57          default => 'html',          default => 'html',
58  );  );
59    
60    has 'request_url' => (
61            documentation => 'Take url from params if not specified',
62            is => 'rw',
63            isa => 'Uri', coerce => 1,
64            lazy => 1,
65            default => sub {
66                    my $self = shift;
67                    $self->params->{request_url};
68            },
69    );
70    
71  sub html {  sub html {
72          my ( $self ) = @_;          my ( $self ) = @_;
73    
# Line 137  sub html { Line 148  sub html {
148          if ( $@ ) {          if ( $@ ) {
149                  my $error = $@;                  my $error = $@;
150                  my $o = Frey->new;                  my $o = Frey->new;
151                    $o->{request_url} = $self->request_url; # sigh, this is dynamic languge, right?
152                  Frey::Web->meta->apply( $o );                  Frey::Web->meta->apply( $o );
153                  $html = $o->page( body => $self->error( $error ) );                  $html = $o->page( body => $self->error( $error ) );
154          }          }

Legend:
Removed from v.652  
changed lines
  Added in v.653

  ViewVC Help
Powered by ViewVC 1.1.26