Changeset 467


Ignore:
Timestamp:
03/18/14 17:17:47 (10 years ago)
Author:
nanardon
Message:
  • Commit changes after submitting metapath
  • Dump / Restore take data part or matapath into account
File:
1 edited

Legend:

Unmodified
Added
Removed
  • web/lib/Sophie/Controller/Admin.pm

    r449 r467  
    293293        ->search({},  
    294294            {  
    295                 'select' => [ qw(path type) ],  
    296                 'as'     => [ qw(path type) ] , 
     295                'select' => [ qw(path type data) ],  
     296                'as'     => [ qw(path type data) ] , 
    297297            } 
    298298        )->all ]; 
     
    302302 
    303303sub add_meta_path : XMLRPC { 
    304     my ($self, $c, $distrib, $meta, $type) = @_; 
     304    my ($self, $c, $distrib, $meta, $type, $data) = @_; 
    305305 
    306306    my ($dist) =  
     
    318318            type => $type, 
    319319            path => $meta, 
     320            data => $data, 
    320321        }, 
    321322        { key => 'upath' }, 
    322323    )) { 
     324        $c->model('Base')->storage->dbh->commit; 
    323325        return $c->stash->{xmlrpc} = 'OK'; 
    324326    } else { 
     
    381383    } 
    382384    foreach my $meta (@{ $ref->{metapath} || []}) { 
     385        warn $meta; 
    383386        $c->forward('add_meta_path',  
    384             [ $ref->{distrib}, $meta->{path}, $meta->{type} ]); 
     387            [ $ref->{distrib}, $meta->{path}, $meta->{type}, $meta->{data} ]); 
    385388    } 
    386389 
Note: See TracChangeset for help on using the changeset viewer.