Revision aa1102e9
Von Udo Spallek vor fast 18 Jahren hinzugefügt
SL/Template.pm | ||
---|---|---|
1307 | 1307 |
sub get_mime_type() { |
1308 | 1308 |
my ($self) = @_; |
1309 | 1309 |
|
1310 |
if ($self->{"form"}->{"format"} =~ /xml/i) {
|
|
1310 |
if ($self->{"form"}->{"format"} =~ /elsterwinston/i) {
|
|
1311 | 1311 |
return "application/xml "; |
1312 |
} elsif ($self->{"form"}->{"format"} =~ /elstertaxbird/i) { |
|
1313 |
return "application/x-taxbird"; |
|
1312 | 1314 |
} else { |
1313 |
return "text/xml";
|
|
1315 |
return "text"; |
|
1314 | 1316 |
} |
1315 | 1317 |
} |
1316 | 1318 |
|
1317 | 1319 |
sub uses_temp_file { |
1318 |
# my ($self) = @_; |
|
1319 |
# no tempfile needet for XML Output |
|
1320 |
# tempfile needet for XML Output |
|
1320 | 1321 |
return 1; |
1321 | 1322 |
} |
1322 | 1323 |
|
Auch abrufbar als: Unified diff
XML-Templates um Mimetypen fuer Winston und Taxbird erweitert