Show
Ignore:
Timestamp:
03/16/03 00:01:28 (21 years ago)
Author:
jalet
Message:

New mailto option in configuration file added.
No time to test this tonight (although it should work).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/config.py

    r804 r852  
    1515# 
    1616# $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# 
    1721# Revision 1.16  2003/02/17 23:01:56  jalet 
    1822# Typos 
     
    189193        return self.getPrinterOption(printer, "admin") 
    190194         
     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         
    191203    def getGraceDelay(self, printer) :     
    192204        """Returns the grace delay in days."""