def _url(self, endpoint, url_data=None, parameters=None):
try:<EOL><INDENT>url = '<STR_LIT>' % (self.base_url, self.endpoints[endpoint])<EOL><DEDENT>except KeyError:<EOL><INDENT>raise EndPointDoesNotExist(endpoint)<EOL><DEDENT>if url_data:<EOL><INDENT>url = url % url_data<EOL><DEDENT>if parameters:<EOL><INDENT>url = '<STR_LIT>' % (url, urllib.urlencode(parameters, True))<EOL><DEDENT>return url<EOL>
Generate URL on the modularized endpoints and url parameters