Revision 07ad0fee
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/Controller/CsvImport/Base.pm | ||
---|---|---|
|
||
eval "require " . $self->class;
|
||
|
||
my %unwanted = map { ( $_ => 1 ) } (qw(itime mtime), map { $_->name } @{ $self->class->meta->primary_key_columns });
|
||
my %profile;
|
||
for my $col ($self->class->meta->columns) {
|
||
next if $unwanted{$col};
|
||
|
||
my $name = $col->isa('Rose::DB::Object::Metadata::Column::Numeric') ? "$col\_as_number"
|
||
: $col->isa('Rose::DB::Object::Metadata::Column::Date') ? "$col\_as_date"
|
||
: $col->isa('Rose::DB::Object::Metadata::Column::Timestamp') ? "$col\_as_date"
|
menu.ini | ||
---|---|---|
action=CsvImport/new
|
||
profile.type=addresses
|
||
|
||
# [System--Import CSV2--Parts]
|
||
# module=controller.pl
|
||
# action=CsvImport/new
|
||
# profile.type=parts
|
||
[System--Import CSV2--Parts]
|
||
module=controller.pl
|
||
action=CsvImport/new
|
||
profile.type=parts
|
||
|
||
|
||
[System--Templates]
|
Auch abrufbar als: Unified diff
Gewisse Spalten nicht ins Profil aufnehmen