Changeset 1219 for pykota/trunk/pykota/storage.py
- Timestamp:
- 11/26/03 00:46:40 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r1203 r1219 22 22 # 23 23 # $Log$ 24 # Revision 1.28 2003/11/25 23:46:40 jalet 25 # Don't try to verify if module name is valid, Python does this better than us. 26 # 24 27 # Revision 1.27 2003/11/23 19:01:36 jalet 25 28 # Job price added to history … … 443 446 backend = backendinfo["storagebackend"] 444 447 try : 445 if not backend.isalpha() : 446 # don't trust user input 447 raise ImportError 448 # 449 # TODO : descending compatibility 450 # 451 if backend == "postgresql" : 452 backend = "pgstorage" # TODO : delete, this is for descending compatibility only 453 exec "from pykota.storages import %s as storagebackend" % backend.lower() 448 exec "from pykota.storages import %s as storagebackend" % backend.lower() 454 449 except ImportError : 455 450 raise PyKotaStorageError, _("Unsupported quota storage backend %s") % backend