# File lib/ERPConnector.rb, line 55
    def setConnexionfromConf(para={}, *args)
        conf_path = 'base.conf' 
        if ENV['CONF']
            conf_path = ENV['CONF']
        end
        my_config = ParseConfig.new(conf_path)
        @config[:port] = my_config.get_value('port')
        @config[:user] =  my_config.get_value('user')
        @config[:dbname] =  my_config.get_value('database')
        @config[:pwd] =  my_config.get_value('password') 
        @config[:host] =  my_config.get_value('host')
        @config[:log_level] = Logger::ERROR
        @config.merge(para)

        if @ooor :
            self.login(@config[:user], @config[:pwd])
        else
             @ooor=Ooor.new(
                            {
                            :url => "http://#{ @config[:host]}:#{@config[:port]}/xmlrpc",
                            :database => @config[:dbname], 
                            :username =>  @config[:user], 
                            :password => @config[:pwd], 
                            :log_level=>  @config[:log_level]
                            }
                        )
             Dir["lib/Helpers/*.rb"].each {|file| require file }
        end
    end