Changeset 1523
- Timestamp:
- 06/06/04 00:18:04 (20 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r1522 r1523 22 22 # 23 23 # $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 # 24 28 # Revision 1.54 2004/06/05 22:03:49 jalet 25 29 # Payments history is now stored in database … … 515 519 class BaseStorage : 516 520 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.""" 519 522 self.closed = 1 520 523 self.tool = pykotatool -
pykota/trunk/pykota/storages/ldapstorage.py
r1522 r1523 22 22 # 23 23 # $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 # 24 28 # Revision 1.68 2004/06/05 22:03:50 jalet 25 29 # Payments history is now stored in database … … 275 279 def __init__(self, pykotatool, host, dbname, user, passwd) : 276 280 """Opens the LDAP connection.""" 277 # raise PyKotaStorageError, "Sorry, the LDAP backend for PyKota is not yet implemented !"278 281 BaseStorage.__init__(self, pykotatool) 279 282 self.info = pykotatool.config.getLDAPInfo() -
pykota/trunk/pykota/tool.py
r1517 r1523 22 22 # 23 23 # $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 # 24 28 # Revision 1.95 2004/06/03 21:50:34 jalet 25 29 # Improved error logging. … … 399 403 self.smtpserver = self.config.getSMTPServer() 400 404 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 403 411 self.softwareJobSize = 0 404 412 self.softwareJobPrice = 0.0