2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Extend extension coverage to include the 'self' relation in html case

This commit is contained in:
Jarrod Johnson 2014-04-30 15:58:31 -04:00
parent 934ea4bd5f
commit ecd12c6c0f

View File

@ -384,7 +384,8 @@ def _assemble_html(responses, resource, querydict, url, extension):
yield 'Only fields that have their boxes checked will have their ' \
'respective values honored by the confluent server.<hr>' \
'<input type="hidden" name="restexplorerhonorkey" value="">' + \
'<a rel="self" href="%s">%s</a><br>' % (resource, resource)
'<a rel="self" href="{0}{1}">{0}{1}</a><br>'.format(
resource, extension)
if url == '/':
iscollection = True
elif resource[-1] == '/':