summaryrefslogtreecommitdiff
path: root/pgweb/util/helpers.py
diff options
context:
space:
mode:
authorMagnus Hagander2010-01-02 19:24:35 +0000
committerMagnus Hagander2010-01-02 19:24:35 +0000
commit86940aaa86ae9e43a13741e8feb4e12b83024a22 (patch)
tree39c5c50e5c45b5c6417b5f77110ec3ad1505c698 /pgweb/util/helpers.py
parent4b9efc5bdc563402b5115ec7dc52a48b14b63619 (diff)
Generate mirrors.xml file
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)