Show
Ignore:
Timestamp:
06/13/07 23:22:59 (17 years ago)
Author:
jerome
Message:

Now fails and logs a meaningful error message immediately when the cupspykota
backend can't read ~pykota/pykotadmin.conf, instead of printing the
document and failing at the time the job is written to the history.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3171 r3189  
    9494        """Deferred initialization.""" 
    9595        PyKotaTool.deferredInit(self) 
     96        if not self.config.isAdmin : 
     97            from pykota import config 
     98            username = self.originalUserName 
     99            raise config.PyKotaConfigError, _("User %(username)s is not allowed to read ~pykota/pykotadmin.conf, you must check the permissions.") % locals() 
    96100        self.gotSigTerm = 0 
    97101        self.disableSigInt()