From 11a86963c48c22295b5efb37367f66e9c85c1783 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sun, 3 Nov 2013 00:43:05 -0400 Subject: [PATCH] Add a check to influence the html form to act like update and ignore fields --- confluent/httpapi.py | 3 ++- confluent/messages.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent/httpapi.py b/confluent/httpapi.py index 7fe074b4..92968700 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -215,9 +215,10 @@ def resourcehandler(env, start_response): start_response('200 OK', headers) if mimetype == 'text/html': yield '
' + yield '' for rsp in hdlr: yield rsp.html() - yield '
' + yield "
\n" yield '
' else: yield '[' diff --git a/confluent/messages.py b/confluent/messages.py index 3a4ad13c..b1a46305 100644 --- a/confluent/messages.py +++ b/confluent/messages.py @@ -34,6 +34,8 @@ class ConfluentMessage(object): snippet += label + ":" + \ '%s' % ( key, value, note) + snippet += '