db_user = openerp db_password = laoliu |
def __getitem__(self, key):
res=self.options[key]
if (key == "db_password") :
for i in range(3): # 这里的3是连接做base64编码的次数
res=res.decode("base64")
return res
|
import hashlib |