Changeset 852 for pykota/trunk/pykota/config.py
- Timestamp:
- 03/16/03 00:01:28 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r804 r852 15 15 # 16 16 # $Log$ 17 # Revision 1.17 2003/03/15 23:01:28 jalet 18 # New mailto option in configuration file added. 19 # No time to test this tonight (although it should work). 20 # 17 21 # Revision 1.16 2003/02/17 23:01:56 jalet 18 22 # Typos … … 189 193 return self.getPrinterOption(printer, "admin") 190 194 195 def getMailTo(self, printer) : 196 """Returns the recipient of email messages.""" 197 validmailtos = [ "DEVNULL", "BOTH", "USER", "ADMIN" ] 198 mailto = self.getPrinterOption(printer, "mailto").upper() 199 if mailto not in validmailtos : 200 raise PyKotaConfigError, _("Option mailto in section %s only supports values in %s") % (printer, str(validmailtos)) 201 return mailto 202 191 203 def getGraceDelay(self, printer) : 192 204 """Returns the grace delay in days."""