Changeset 2235 for trunk


Ignore:
Timestamp:
03/08/19 16:50:27 (5 years ago)
Author:
nanardon
Message:

allow to use function in place of attribute

File:
1 edited

Legend:

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

    r2234 r2235  
    316316        $fmt =~ s&(?:%\{([\?!]+)?([^:}%]*)(?::([^}%]*))?\})& 
    317317            my $op = $1; 
    318             my $val = $self->get_c_field($2); 
     318            my $attr = $2; 
     319            my $val = ''; 
     320             
     321            if ($attr =~ /^(\w+)\((.*)\)$/) { 
     322                $val = $self->base->QFunc($1, $2); 
     323            } else { 
     324                $val = $self->get_c_field($2); 
     325            } 
     326 
    319327            my $modifier = $3 || ''; 
    320328            my $res = ''; 
Note: See TracChangeset for help on using the changeset viewer.