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