Revision 8c84f902
Von Bernd Bleßmann vor etwa 11 Jahren hinzugefügt
SL/Controller/CsvImport/Base.pm | ||
---|---|---|
18 | 18 |
use Rose::Object::MakeMethods::Generic |
19 | 19 |
( |
20 | 20 |
scalar => [ qw(controller file csv test_run save_with_cascade) ], |
21 |
'scalar --get_set_init' => [ qw(is_multiplexed profile displayable_columns existing_objects class manager_class cvar_columns all_cvar_configs all_languages payment_terms_by all_currencies default_currency_id all_vc vc_by) ],
|
|
21 |
'scalar --get_set_init' => [ qw(profile displayable_columns existing_objects class manager_class cvar_columns all_cvar_configs all_languages payment_terms_by all_currencies default_currency_id all_vc vc_by) ], |
|
22 | 22 |
); |
23 | 23 |
|
24 | 24 |
sub run { |
... | ... | |
47 | 47 |
|
48 | 48 |
$self->controller->track_progress(progress => 50); |
49 | 49 |
|
50 |
if ($self->csv->is_multiplexed) { |
|
51 |
die "controller for multiplex data is not implemented yet"; |
|
52 |
} |
|
53 |
|
|
54 | 50 |
$self->controller->errors([ $self->csv->errors ]) if $self->csv->errors; |
55 | 51 |
|
56 | 52 |
return if ( !$self->csv->header || $self->csv->errors ); |
... | ... | |
311 | 307 |
$self->manager_class("SL::DB::Manager::" . $1); |
312 | 308 |
} |
313 | 309 |
|
314 |
sub init_is_multiplexed { |
|
315 |
my ($self) = @_; |
|
316 |
|
|
317 |
$self->is_multiplexed('ARRAY' eq ref ($self->class) && scalar @{ $self->class } > 1); |
|
318 |
} |
|
310 |
sub is_multiplexed { 0 } |
|
319 | 311 |
|
320 | 312 |
sub check_objects { |
321 | 313 |
} |
SL/Controller/CsvImport/BaseMulti.pm | ||
---|---|---|
227 | 227 |
$self->manager_class("SL::DB::Manager::" . $1); |
228 | 228 |
} |
229 | 229 |
|
230 |
sub is_multiplexed { 1 } |
|
231 |
|
|
230 | 232 |
1; |
231 | 233 |
|
Auch abrufbar als: Unified diff
Der Worker bestimmt, ob die Daten multiplex sind oder nicht.
Deshalb muss das nicht ermittelt werden.