/[SQLSession]/trunk/lib/SQLSession/Dispatcher.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/SQLSession/Dispatcher.pm

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

revision 22 by dpavlin, Sun Dec 3 19:55:52 2006 UTC revision 33 by dpavlin, Sat Dec 9 01:15:02 2006 UTC
# Line 7  use Jifty::Dispatcher -base; Line 7  use Jifty::Dispatcher -base;
7    
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
9    
10    before '*' => run {
11            my $top = Jifty->web->navigation;
12            my $edit = Jifty->config->app('edit');
13            $top->child( 'New' => url => '/new' ) if ($edit);
14            $top->child( 'List' => url => '/list' );
15    };
16    
17    
18    
19  under qr{sql/(\d+)} => run {  under qr{sql/(\d+)} => run {
20    
21          my $q = SQLSession::Model::Query->new();          my $q = SQLSession::Model::Query->new();
# Line 27  on 'new' => run { Line 36  on 'new' => run {
36  };  };
37    
38  on '/' => run {  on '/' => run {
39          show '/list';          redirect '/list';
40  };  };
41    
42  1;  1;

Legend:
Removed from v.22  
changed lines
  Added in v.33

  ViewVC Help
Powered by ViewVC 1.1.26