IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35364 for trunk/PS-IPP-PStamp


Ignore:
Timestamp:
Apr 4, 2013, 1:09:34 PM (13 years ago)
Author:
bills
Message:

Implement ACTION = 'PREVIEW' for postage stamp requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm

    r34448 r35364  
    167167    my $fields_output;
    168168    {
    169         my $command = "echo $request_file_name | $fields -x 0 EXTNAME EXTVER REQ_NAME ACTION USERNAME EMAIL";
     169        my $command = "echo $request_file_name | $fields -x 0 EXTNAME EXTVER REQ_NAME ACTION EMAIL";
    170170        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    171171            run(command => $command, verbose => $verbose);
     
    187187    if ($extver > 1) {
    188188        $header{ACTION} = $action;
    189         $header{USER} = $username;
    190189        $header{EMAIL} = $email;
    191190    } else {
    192191        $header{ACTION} = $action = "PROCESS";
    193         $header{USERNAME} = 'null';
    194192        $header{EMAIL} = 'null';
    195193    }
    196194
    197     if ($action eq "LIST") {
    198         return (\%header, undef);
    199     } elsif ($action ne "PROCESS") {
    200         die "unexpected request ACTION found: $action in $request_file_name";
     195    if ($action ne "PROCESS" and $action ne 'PREVIEW') {
     196        die "\nunexpected request ACTION found: $action in $request_file_name";
    201197    }
    202198
Note: See TracChangeset for help on using the changeset viewer.