Changeset 1541 for pykota/trunk
- Timestamp:
- 06/16/04 22:56:34 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1530 r1541 24 24 # 25 25 # $Log$ 26 # Revision 1.62 2004/06/16 20:56:34 jalet 27 # Smarter initialisation code 28 # 26 29 # Revision 1.61 2004/06/08 09:00:04 jalet 27 30 # Fixed problem when username was passed in uppercase from Samba and we … … 698 701 pass 699 702 700 kotabackend.closeJobDataStream() 703 try : 704 kotabackend.closeJobDataStream() 705 except NameError, msg : 706 sys.stderr.write("ERROR: PyKota's CUPS backend wrapper didn't initialize correctly : %s\n" % msg) 707 sys.stderr.flush() 708 retcode = 1 701 709 702 710 sys.exit(retcode) -
pykota/trunk/NEWS
r1539 r1541 22 22 PyKota NEWS : 23 23 24 - 1.19alpha21 : 25 26 - Additionnal check 27 24 28 - 1.19alpha20 : 25 29 -
pykota/trunk/pykota/tool.py
r1538 r1541 22 22 # 23 23 # $Log$ 24 # Revision 1.101 2004/06/16 20:56:34 jalet 25 # Smarter initialisation code 26 # 24 27 # Revision 1.100 2004/06/11 08:16:03 jalet 25 28 # More exceptions catched in case of very early failure. … … 421 424 sys.stderr.flush() 422 425 sys.exit(-1) 423 self.debug = self.config.getDebug()424 self.smtpserver = self.config.getSMTPServer()425 self.maildomain = self.config.getMailDomain()426 426 try : 427 self.debug = self.config.getDebug() 428 self.smtpserver = self.config.getSMTPServer() 429 self.maildomain = self.config.getMailDomain() 427 430 self.logger = logger.openLogger(self.config.getLoggingBackend()) 428 431 self.storage = storage.openConnection(self) … … 466 469 sys.stderr.write(msg) 467 470 sys.stderr.flush() 468 crashrecipient = self.config.getCrashRecipient()469 if crashrecipient :470 try:471 try : 472 crashrecipient = self.config.getCrashRecipient() 473 if crashrecipient : 471 474 admin = self.config.getAdminMail("global") # Nice trick, isn't it ? 472 475 fullmessage = "========== Traceback :\n\n%s\n\n========== sys.argv :\n\n%s\n\n========== Environment :\n\n%s\n" % \ … … 477 480 server.sendmail(admin, [admin, crashrecipient], "From: %s\nTo: %s\nCc: %s\nSubject: PyKota crash traceback !\n\n%s" % (admin, crashrecipient, admin, fullmessage)) 478 481 server.quit() 479 480 482 except : 483 pass 481 484 482 485 def parseCommandline(self, argv, short, long, allownothing=0) : -
pykota/trunk/pykota/version.py
r1536 r1541 22 22 # 23 23 24 __version__ = "1.19alpha2 0_unofficial"24 __version__ = "1.19alpha21_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""