MCPcopy Create free account
hub / github.com/apache/cloudstack / xml_for

Function xml_for

tools/apidoc/gen_toc.py:333–341  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

331
332
333def xml_for(command):
334 name = command['name']
335 isAsync = command['async'] and ' (A)' or ''
336 isDeprecated = command['deprecated'] and ' (D)' or ''
337 dirname = command['dirname']
338 return '''<xsl:if test="name=\'%(name)s\&#x27;">
339<li><a href="%(dirname)s/%(name)s.html"><xsl:value-of select="name"/>%(isAsync)s %(isDeprecated)s</a></li>
340</xsl:if>
341''&#x27; % locals()
342
343
344def write_xml(out, user):

Callers 1

write_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected