summaryrefslogtreecommitdiff
path: root/pgweb/util/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgweb/util/helpers.py')
-rw-r--r--pgweb/util/helpers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pgweb/util/helpers.py b/pgweb/util/helpers.py
index 126b271c..66817692 100644
--- a/pgweb/util/helpers.py
+++ b/pgweb/util/helpers.py
@@ -41,3 +41,7 @@ def simple_form(instancetype, itemid, request, formclass, formtemplate='base/for
'form_intro': hasattr(form, 'form_intro') and form.form_intro or None,
}, NavContext(request, navsection))
+def add_xml_element(xml, name, value):
+ xml.startElement(name, {})
+ xml.characters(value)
+ xml.endElement(name)