def create_search_url ( self ) : url = '?' for key , value in self . arguments . items ( ) : url += '%s=%s&' % ( quote_plus ( key ) , quote_plus ( value ) ) self . url = url [ : - 1 ] return self . url
python make url query string
Generates ( urlencoded ) query string from stored key - values tuples
def create_search_url(self):
        """ Generates (urlencoded) query string from stored key-values tuples

        :returns: A string containing all arguments in a url-encoded format
        """

        url = '?'
        for key, value in self.arguments.items():
            url += '%s=%s&' % (quote_plus(key), quote_plus(value))
        self.url = url[:-1]
        return self.url