Changeset 1916
- Timestamp:
- 11/15/04 16:23:07 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r1914 r1916 22 22 # 23 23 # $Log$ 24 # Revision 1.56 2004/11/15 15:23:07 jalet 25 # Strips spaces just in case 26 # 24 27 # Revision 1.55 2004/11/15 15:14:06 jalet 25 28 # Preliminary integration of Matt's patch for banners. … … 567 570 return "BOTH" # Default value of BOTH 568 571 else : 569 value = value. upper()572 value = value.strip().upper() 570 573 if value not in validvalues : 571 raise PyKotaConfigError, _("Option onaccountererror in section %s only supports values in %s") % (printername, str(validvalues))574 raise PyKotaConfigError, _("Option accountbanner in section %s only supports values in %s") % (printername, str(validvalues)) 572 575 return value 573 576 … … 575 578 """Returns the startingbanner value if set, else None.""" 576 579 try : 577 return self.getPrinterOption(printername, "startingbanner") 580 return self.getPrinterOption(printername, "startingbanner").strip() 578 581 except PyKotaConfigError : 579 582 return None … … 582 585 """Returns the endingbanner value if set, else None.""" 583 586 try : 584 return self.getPrinterOption(printername, "endingbanner") 587 return self.getPrinterOption(printername, "endingbanner").strip() 585 588 except PyKotaConfigError : 586 589 return None