def capabilities_url(self, service_url, vendor_kwargs=None):
<EOL>pieces = urlparse(service_url)<EOL>args = parse_qs(pieces.query)<EOL>if '<STR_LIT>' not in args:<EOL><INDENT>args['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>if '<STR_LIT>' not in args:<EOL><INDENT>args['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>if '<STR_LIT:version>' not in args:<EOL><INDENT>args['<STR_LIT:version>'] = self.version<EOL><DEDENT>if vendor_kwargs:<EOL><INDENT>args.update(vendor_kwargs)<EOL><DEDENT>query = urlencode(args, doseq=True)<EOL>pieces = ParseResult(pieces.scheme, pieces.netloc,<EOL>pieces.path, pieces.params,<EOL>query, pieces.fragment)<EOL>return urlunparse(pieces)<EOL>
Return a capabilities url