Changeset 962

Show
Ignore:
Timestamp:
03/22/05 16:09:42 (4 years ago)
Author:
ed
Message:

Added a workaround for code that calls dConnectInfo for encryption/decryption services when there is no App running.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/db/dConnectInfo.py

    r950 r962  
    7070 
    7171    def encrypt(self, val): 
    72         return self.Application.encrypt(val) 
    73          
     72        if self.Application: 
     73            return self.Application.encrypt(val) 
     74        else: 
     75            cryp = dabo.common.SimpleCrypt() 
     76            return cryp.encrypt(val) 
    7477 
    7578    def decrypt(self, val): 
    76         return self.Application.decrypt(val) 
     79        if self.Application: 
     80            return self.Application.encrypt(val) 
     81        else: 
     82            cryp = dabo.common.SimpleCrypt() 
     83            return cryp.decrypt(val) 
    7784     
    7885