parameters: (self,method,args=None)
docstring: GET to DeepDetect server
docstring_summary: GET to DeepDetect server
docstring_tokens: GET to DeepDetect server
function: def get(self,method,args=None):
          """ GET to DeepDetect server """
          u = self.__ddurl
          u += method
          headers = {}
          if args is not None:
              sep = "?"
              for arg,argv in args.iteritems():
                  u += sep
                  sep = "&"
                  u += urllib2.quote(arg)
                  u += '='
                  if argv is not None:
                      u += urllib2.quote(argv)
                      
          LOG("GET %s"%u)
          response = None
          try:
              req = urllib2.Request(u)
              response = urllib2.urlopen(req, timeout=DD_TIMEOUT)
              jsonresponse=response.read()
          except:
              raise DDCommunicationError(u,"GET",headers,None,response)
          LOG(jsonresponse)
          try:
              return self.__return_format(jsonresponse)
          except:
              raise DDDataError(u,"GET",headers,None,jsonresponse)
function_tokens: def get ( self , method , args = None ) : u = self . __ddurl u += method headers = { } if args is not None : sep = "?" for arg , argv in args . iteritems ( ) : u += sep sep = "&" u += urllib2 . quote ( arg ) u += '=' if argv is not None : u += urllib2 . quote ( argv ) LOG ( "GET %s" % u ) response = None try : req = urllib2 . Request ( u ) response = urllib2 . urlopen ( req , timeout = DD_TIMEOUT ) jsonresponse = response . read ( ) except : raise DDCommunicationError ( u , "GET" , headers , None , response ) LOG ( jsonresponse ) try : return self . __return_format ( jsonresponse ) except : raise DDDataError ( u , "GET" , headers , None , jsonresponse )