Changeset 55:a546fa08081b in stamper


Ignore:
Timestamp:
Nov 8, 2014, 7:21:50 PM (10 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Added -p parameter, enabling push of stamps to a stamp collector server.

IMPORTANT: Before being able to push stamps, you have to set proper URLs,
USERNAME and PASSWORD values in stamper.py

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bin/stamps

    r41 r55  
    2828    elif args.import_file:
    2929        s.import_stamps(args.import_file)
     30    elif args.push:
     31        s.push_stamps(args.customer, args.filter)
    3032    else:
    3133        s.show_stamps(args.customer, args.filter, args.verbose, args.sum)
  • stamper/cli.py

    r41 r55  
    2121    parser.add_argument('-i', '--import', action="store", dest="import_file",
    2222                        help='Import stamps from the given file')
     23    parser.add_argument('-p', '--push', action="store_true",
     24                        help='Push stamps to a remote stamps collector server')
    2325    return parser
Note: See TracChangeset for help on using the changeset viewer.