Changeset 2802 for pykota/trunk/bin/pknotify
- Timestamp:
- 03/24/06 00:22:33 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pknotify
r2799 r2802 154 154 return xmlrpclib.Binary(msg.replace("\\n", "\n")) 155 155 156 def convPAM(self, auth, queries , userdata) :156 def convPAM(self, auth, queries=[], userdata=None) : 157 157 """Prepares PAM datas.""" 158 158 response = [] … … 194 194 def alarmHandler(self, signum, frame) : 195 195 """Alarm handler.""" 196 raise TimeoutError, "The end user at %s:%i didn't answer after %i seconds !"% (self.destination, self.port, self.timeout)196 raise TimeoutError, _("The end user at %s:%i didn't answer within %i seconds. The print job will be cancelled.") % (self.destination, self.port, self.timeout) 197 197 198 198 def main(self, arguments, options) : … … 266 266 except TimeoutError, msg : 267 267 self.printInfo(msg, "warn") 268 print "CANCEL" # Timeout occured : job is cancelled. 268 269 269 270 if self.timeout :