# extends 'layout.html' # set _ = partial(dgettext, domain) # set tag_ = partial(dtgettext, domain) # set title = _("Remote Procedure Call (RPC)") # block title ${title} ${ super() } # endblock title # block content

${title}

${_("Installed API version:")} ${rpc.version}

${_("Protocol reference:")}

${ _("Below you will find a detailed description of all the RPC " "protocols installed in this environment. This includes supported " "content types as well as target URLs for anonymous and " "authenticated access. Use this information to interact with this " "environment from a remote location.") }

${ _("Libraries for remote procedure calls and parsing exists for most " "major languages and platforms - use a tested, standard library " "for consistent results.") }

# for name, description, paths in rpc.protocols:

${name}

${_("For %(name)s protocol, use any one of:", name=name)}

    # for ct, ct_group in paths|groupby(1): # with ct_group = ct_group|list
  • ${tag_("%(header)s header with request to:", header=tag.tt('Content-Type: ', ct))}
    • ${_("For anonymous access:")}
        # for h, mimetype in ct_group: # with url = req.abs_href(h)
      • ${url}
      • # endwith # endfor
    • ${_("For authenticated access:")}
        # for h, mimetype in ct_group: # with url = req.abs_href.login(h)
      • ${url}
      • # endwith # endfor
  • # endwith # endfor
${wiki_to_html(context, description)}
# endfor

${_("RPC exported functions")}

# for key in rpc.functions|sort:
# set ns = rpc.functions[key]

${ns.namespace} - ${ns.description}

# for signature, description, permission in ns.methods: # endfor
${_("Function")} ${_("Description")} ${_("Permission required")}
${signature} ${description} ${permission or _("By resource")}
# endfor
${ super() } # endblock content