#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-----------------------------------------------------------------------------------------------------  
 | 
# @copyright: Copyright (c) 2004, 2010 Xiamen Wangyou Network Technology Co.,Ltd., All rights reserved.  
 | 
#-----------------------------------------------------------------------------------------------------  
 | 
##@package MongoDBConfig.py  
 | 
# Ä£¿éµÄ¼òҪ˵Ã÷:Êý¾Ý¿âµÄһЩÅäÖÃÐÅÏ¢  
 | 
# @author ifo  
 | 
# @date 2012-6-12  
 | 
# @version 1.0  
 | 
#  
 | 
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  
 | 
  
 | 
import ConfigParser  
 | 
  
 | 
#¶ÁCFG  
 | 
def LoadDataFromCfg(sign):  
 | 
    cfg = ConfigParser.ConfigParser()  
 | 
    cfg.read("MongoDBConfig.ini")  
 | 
    return cfg.get("MongoDBConfig", sign)  
 | 
  
 | 
#Êý¾Ý¿âÑ¡Ôñ  
 | 
  
 | 
USER_DB_IP = LoadDataFromCfg("USER_DB_IP")   
 | 
USER_DB_PORT = int(LoadDataFromCfg("USER_DB_PORT"))  
 | 
USER_DB_NAME = LoadDataFromCfg("USER_DB_NAME")   
 | 
USER_DB_UserName = LoadDataFromCfg("USER_DB_UserName")  
 | 
USER_DB_Password = LoadDataFromCfg("USER_DB_Password")  
 | 
USER_DB_IsBase64 = int(LoadDataFromCfg("USER_DB_IsBase64"))  
 | 
USER_DB_ENCODING = LoadDataFromCfg("USER_DB_ENCODING")  
 | 
REG_DB_NAME = LoadDataFromCfg("REG_DB_NAME")   
 | 
  
 |