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

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

revision 13 by dpavlin, Fri May 5 22:20:53 2006 UTC revision 14 by dpavlin, Fri May 26 09:29:25 2006 UTC
# Line 42  before 'logout', run { Line 42  before 'logout', run {
42      );      );
43  };  };
44    
45    
46    # These are dispatcher rules that halos and error handling need to be
47    # able to edit files in place.  These should become a plugin of some
48    # sort, when we have that infrastructure.
49    
50    before '*', run {
51        Jifty->api->allow(qr/^Jifty::Action::Devel/)
52          if Jifty->config->framework('DevelMode');
53    };
54    
55    on qr'^/__jifty/edit/(.*?)/(.*)$', run {
56        my $editor = Jifty->web->new_action(
57            class     => 'Jifty::Action::Devel::FileEditor',
58            moniker   => 'editpage',
59            arguments => {
60                source_path => $2,
61                file_type   => $1,
62            }
63        );
64    
65        set editor => $editor;
66        show '/__jifty/edit_file';
67    };
68    
69  1;  1;

Legend:
Removed from v.13  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26