Ignore:
Timestamp:
11/13/10 12:33:57 (14 years ago)
Author:
nanardon
Message:
  • distrib report as json/xmlrpc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/trunk/lib/Sophie/Controller/Root.pm

    r2 r3  
    2020 
    2121=head1 METHODS 
     22 
     23=cut 
     24 
     25sub begin : Private { 
     26    my ( $self, $c ) = @_; 
     27 
     28    if ($c->req->param('json')) { 
     29        $c->stash->{current_view} = 'Json'; 
     30    } 
     31} 
    2232 
    2333=head2 index 
     
    5767sub  end : Private { 
    5868    my ( $self, $c ) = @_; 
    59     if ($c->req->xmlrpc->method) { 
    60         return; 
    61     } else { 
     69    if (!$c->req->xmlrpc->method) { 
    6270        $c->forward('_end'); 
     71    } elsif (!$c->stash->{current_view}) { 
    6372    } 
     73    $c->model('Base')->storage->dbh->rollback; 
    6474} 
    6575 
Note: See TracChangeset for help on using the changeset viewer.