Changeset 1523 for pykota/trunk

Show
Ignore:
Timestamp:
06/06/04 00:18:04 (20 years ago)
Author:
jalet
Message:

Now catches some exceptions earlier.
storage.py and ldapstorage.py : removed old comments

Location:
pykota/trunk/pykota
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r1522 r1523  
    2222# 
    2323# $Log$ 
     24# Revision 1.55  2004/06/05 22:18:04  jalet 
     25# Now catches some exceptions earlier. 
     26# storage.py and ldapstorage.py : removed old comments 
     27# 
    2428# Revision 1.54  2004/06/05 22:03:49  jalet 
    2529# Payments history is now stored in database 
     
    515519class BaseStorage : 
    516520    def __init__(self, pykotatool) : 
    517         """Opens the LDAP connection.""" 
    518         # raise PyKotaStorageError, "Sorry, the LDAP backend for PyKota is not yet implemented !" 
     521        """Opens the storage connection.""" 
    519522        self.closed = 1 
    520523        self.tool = pykotatool 
  • pykota/trunk/pykota/storages/ldapstorage.py

    r1522 r1523  
    2222# 
    2323# $Log$ 
     24# Revision 1.69  2004/06/05 22:18:04  jalet 
     25# Now catches some exceptions earlier. 
     26# storage.py and ldapstorage.py : removed old comments 
     27# 
    2428# Revision 1.68  2004/06/05 22:03:50  jalet 
    2529# Payments history is now stored in database 
     
    275279    def __init__(self, pykotatool, host, dbname, user, passwd) : 
    276280        """Opens the LDAP connection.""" 
    277         # raise PyKotaStorageError, "Sorry, the LDAP backend for PyKota is not yet implemented !" 
    278281        BaseStorage.__init__(self, pykotatool) 
    279282        self.info = pykotatool.config.getLDAPInfo() 
  • pykota/trunk/pykota/tool.py

    r1517 r1523  
    2222# 
    2323# $Log$ 
     24# Revision 1.96  2004/06/05 22:18:04  jalet 
     25# Now catches some exceptions earlier. 
     26# storage.py and ldapstorage.py : removed old comments 
     27# 
    2428# Revision 1.95  2004/06/03 21:50:34  jalet 
    2529# Improved error logging. 
     
    399403        self.smtpserver = self.config.getSMTPServer() 
    400404        self.maildomain = self.config.getMailDomain() 
    401         self.logger = logger.openLogger(self.config.getLoggingBackend()) 
    402         self.storage = storage.openConnection(self) 
     405        try : 
     406            self.logger = logger.openLogger(self.config.getLoggingBackend()) 
     407            self.storage = storage.openConnection(self) 
     408        except (logger.PyKotaLoggingError, storage.PyKotaStorageError), msg : 
     409            self.crashed(msg) 
     410            raise 
    403411        self.softwareJobSize = 0 
    404412        self.softwareJobPrice = 0.0