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

Improved error handling

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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()