/[cvs]/nfo/perl/libs/Data/Transfer/Sync/Metadata.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Transfer/Sync/Metadata.pm

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

revision 1.3 by joko, Tue Feb 11 06:28:24 2003 UTC revision 1.5 by joko, Fri Feb 21 08:34:58 2003 UTC
# Line 6  Line 6 
6  ##  ##
7  ##    ----------------------------------------------------------------------------------------  ##    ----------------------------------------------------------------------------------------
8  ##    $Log$  ##    $Log$
9    ##    Revision 1.5  2003/02/21 08:34:58  joko
10    ##    modified object hierarchy
11    ##    renamed method
12    ##
13    ##    Revision 1.4  2003/02/14 14:06:20  joko
14    ##    + minor fix to old metadata structure
15    ##
16  ##    Revision 1.3  2003/02/11 06:28:24  joko  ##    Revision 1.3  2003/02/11 06:28:24  joko
17  ##    + changes to metadata structure  ##    + changes to metadata structure
18  ##  ##
# Line 34  use mixin::with qw( Data::Transfer::Sync Line 41  use mixin::with qw( Data::Transfer::Sync
41    
42  use Data::Dumper;  use Data::Dumper;
43  use libdb qw( quotesql );  use libdb qw( quotesql );
44  use Data::Transform::Deep qw( refexpr2perlref );  use Data::Code::Ref qw( ref_slot );
45    
46  # get logger instance  # get logger instance
47  my $logger = Log::Dispatch::Config->instance;  my $logger = Log::Dispatch::Config->instance;
# Line 86  sub options2metadata { Line 93  sub options2metadata {
93            
94      # TypeProvider      # TypeProvider
95      # FIXME! this is still Vdeprecated!!!      # FIXME! this is still Vdeprecated!!!
96      if (my $item_type = $self->{args}->{$_ . '_type'}) {      if (my $item_type = $self->{options}->{$_ . '_type'}) {
97        my @item_type = split(':', $item_type);        my @item_type = split(':', $item_type);
98        $self->{meta}->{$_}->{TypeProvider} = { method => $item_type[0], arg => $item_type[1] };        $self->{meta}->{$_}->{TypeProvider} = { method => $item_type[0], arg => $item_type[1] };
99      }      }
# Line 272  sub buildAttributeMap { Line 279  sub buildAttributeMap {
279            # build callback map for helper function            # build callback map for helper function
280            #my $cbmap = { $self->{meta}->{source}->{IdentProvider}->{arg} => $cb_dispatcher };            #my $cbmap = { $self->{meta}->{source}->{IdentProvider}->{arg} => $cb_dispatcher };
281            my $cbmap = {};            my $cbmap = {};
282            my $value = refexpr2perlref($self->{node}->{source}->{payload}, $self->{node}->{source}->{propcache}->{property}, $cbmap);            my $value = ref_slot($self->{node}->{source}->{payload}, $self->{node}->{source}->{propcache}->{property}, $cbmap);
283            $self->{node}->{source}->{propcache}->{value} = $value;            $self->{node}->{source}->{propcache}->{value} = $value;
284          }          }
285    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed