--- nfo/perl/libs/OEF/Script/AbstractFeeder.pm 2003/02/20 21:11:15 1.4 +++ nfo/perl/libs/OEF/Script/AbstractFeeder.pm 2004/06/19 01:49:07 1.6 @@ -1,9 +1,16 @@ #!/usr/bin/perl ## -------------------------------------------------------------------------------- -## $Id: AbstractFeeder.pm,v 1.4 2003/02/20 21:11:15 joko Exp $ +## $Id: AbstractFeeder.pm,v 1.6 2004/06/19 01:49:07 joko Exp $ ## -------------------------------------------------------------------------------- ## $Log: AbstractFeeder.pm,v $ +## Revision 1.6 2004/06/19 01:49:07 joko +## enabled verbosing with Data::Transfer::Sync +## minor patch to option processing +## +## Revision 1.5 2003/02/22 16:53:42 joko +## minor update: debugging +## ## Revision 1.4 2003/02/20 21:11:15 joko ## renamed module ## modified runtime namespace hierarchy @@ -130,17 +137,22 @@ $self->_before_run(); $self->prepare(); #$self->tellWhatIAmDoing(); + #$self->_tellWhatIWillDo(); $self->sync(); } sub prepare { my $self = shift; + #print Dumper($self->{opt}); + #exit; + # TODO: # - move this to Data::Transfer::Sync::checkOptions!!! # - use 'syncable'??? #if ($self->{app}->{config}->{databases}->{$self->{opt}->{target}}->{syncable}) { + $self->{opt}->{action} ||= ''; my $mode = ''; my $erase = 0; @@ -176,9 +188,12 @@ # is api-version specified? my $sync_version = $self->{opt}->{sv}; $sync_version ||= 'V1'; + #$sync_version = 'V2'; + + #print "version: $sync_version", "\n"; # create a new synchronization object - my $sync = Data::Transfer::Sync->new( 'sync_version' => $sync_version, __parent => $self ); + my $sync = Data::Transfer::Sync->new( 'sync_version' => $sync_version, __parent => $self, verbose => 1 ); # trace #print Dumper($self);