Show
Ignore:
Timestamp:
11/26/03 00:46:40 (20 years ago)
Author:
jalet
Message:

Don't try to verify if module name is valid, Python does this better than us.

Files:
1 modified

Legend:

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

    r1203 r1219  
    2222# 
    2323# $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# 
    2427# Revision 1.27  2003/11/23 19:01:36  jalet 
    2528# Job price added to history 
     
    443446    backend = backendinfo["storagebackend"] 
    444447    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() 
    454449    except ImportError : 
    455450        raise PyKotaStorageError, _("Unsupported quota storage backend %s") % backend