(self, ga_engine)
Sends the data to the URL using POST or GET

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
Sends the data to the URL using POST or GET
Sends the data to the URL using POST or GET
def insert(self, ga_engine):
      """ Sends the data to the URL using POST or GET

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
      """
      logging.debug("Sending http request to %s.", self.url)
      stats = ga_engine.getStatistics()
      response = None
      params = stats.internalDict.copy()
      params["generation"] = ga_engine.getCurrentGeneration()
      params["identify"] = self.getIdentify()
      if self.post:  # POST
         response = self.urllibmod.urlopen(self.url, self.urllibmod.urlencode(params))
      else:  # GET
         response = self.urllibmod.urlopen(self.url + "?%s" % (self.urllibmod.urlencode(params)))
      if response:
         response.close()
def insert ( self , ga_engine ) : logging . debug ( "Sending http request to %s." , self . url ) stats = ga_engine . getStatistics ( ) response = None params = stats . internalDict . copy ( ) params [ "generation" ] = ga_engine . getCurrentGeneration ( ) params [ "identify" ] = self . getIdentify ( ) if self . post : # POST response = self . urllibmod . urlopen ( self . url , self . urllibmod . urlencode ( params ) ) else : # GET response = self . urllibmod . urlopen ( self . url + "?%s" % ( self . urllibmod . urlencode ( params ) ) ) if response : response . close ( )