Ignore:
Timestamp:
03/20/15 12:31:05 (9 years ago)
Author:
nanardon
Message:

review the way chanages are report, make it more general

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm

    r1285 r1286  
    637637} 
    638638 
     639sub ReportChange { 
     640    my ($self, $otype, $name, $ref, $changetype, $message, @args) = @_; 
     641 
     642    my $sth = $self->db->prepare(q{ 
     643        INSERT into objectslogs (ikey, otype, name, changetype, username, message) 
     644        VALUES (?,?,?,?,?,?) 
     645        }); 
     646 
     647    $sth->execute( 
     648        $ref, 
     649        $otype, 
     650        $name, 
     651        $changetype, 
     652        $self->user || '@Console', 
     653        sprintf($message, @args), 
     654    ); 
     655} 
     656 
    639657=head2 getobjectlogs($otype, $name) 
    640658 
Note: See TracChangeset for help on using the changeset viewer.