IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 2, 2011, 4:15:42 PM (15 years ago)
Author:
rhenders
Message:

new boolean printing methods

File:
1 edited

Legend:

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

    r31933 r31979  
    1010       self.error("%-40s%s" % (first, second))
    1111
     12   def infoBool(self, first, bool):
     13       if bool: str = "yes"
     14       else: str = "no"
     15       self.info("%-40s%s" % (first, str))
     16
     17   def errorBool(self, first, bool):
     18       if bool: str = "yes"
     19       else: str = "no"
     20       self.error("%-40s%s" % (first, str))
     21
    1222   def infoSeparator(self):
    1323       self.info("--------------------------------------------------------------------------")
Note: See TracChangeset for help on using the changeset viewer.