From ecd12c6c0fd16130bf861bf3a7ef0cc03dbb02ce Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 30 Apr 2014 15:58:31 -0400 Subject: [PATCH] Extend extension coverage to include the 'self' relation in html case --- confluent/httpapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent/httpapi.py b/confluent/httpapi.py index cb432303..0a0eb992 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -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.
' \ '' + \ - '%s
' % (resource, resource) + '{0}{1}
'.format( + resource, extension) if url == '/': iscollection = True elif resource[-1] == '/':