IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32072


Ignore:
Timestamp:
Aug 10, 2011, 12:22:18 PM (15 years ago)
Author:
rhenders
Message:

added 'Are you sure?' prompt if user requests test mode and publish

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/ipptopsps.py

    r32040 r32072  
    120120# prompt user: FORCE and PUBLISH is a dangerous combination
    121121if FORCE and PUBLISH and not QUEUE_IN:
    122    response = raw_input("*** Are you sure you want to publish data with the 'force' option enabled (y/n)? ")
     122   response = raw_input("\n*** Are you sure you want to publish data with the 'force' option enabled (y/n)? ")
     123   if response != "y": sys.exit(1)
     124
     125# prompt user: TEST and PUBLISH is a dangerous combination
     126if TEST and PUBLISH and not QUEUE_IN:
     127   response = raw_input("\n*** Are you sure you want to publish data with the 'testMode' option enabled (y/n)? ")
    123128   if response != "y": sys.exit(1)
    124129
Note: See TracChangeset for help on using the changeset viewer.