Changeset 626 for tea4cups

Show
Ignore:
Timestamp:
04/18/05 23:18:23 (20 years ago)
Author:
jerome
Message:

Improved error handling

Location:
tea4cups/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/NEWS

    r625 r626  
    2424  * 2.11 : 
    2525   
     26    - More powerful error handling at startup time. 
     27     
    2628    - Ignores errors in posthooks because the job was probably  
    2729      successfully printed so no need to stop the print queue. 
  • tea4cups/trunk/tea4cups

    r625 r626  
    219219    """Fakes a configuration file parser.""" 
    220220    def get(self, section, option, raw=0) : 
    221         """Fakes the retrieval of a global option.""" 
     221        """Fakes the retrieval of an option.""" 
    222222        raise ConfigError, "Invalid configuration file : no option %s in section [%s]" % (option, section) 
    223223         
     
    231231        self.myname = "tea4cups" 
    232232        self.pid = os.getpid() 
     233         
     234    def readConfig(self) :     
     235        """Reads the configuration file.""" 
    233236        confdir = os.environ.get("CUPS_SERVERROOT", ".")  
    234237        self.conffile = os.path.join(confdir, "%s.conf" % self.myname) 
     
    874877    else :     
    875878        try : 
     879            wrapper.readConfig() 
    876880            wrapper.initBackend() 
    877881            wrapper.saveDatasAndCheckSum()