mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-06 06:37:36 +03:00
Use pretty namespace prefixes in output.
This commit is contained in:
parent
32b01d60fc
commit
4230ec2fa9
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ NAMESPACES = {
|
||||||
"CS": "http://calendarserver.org/ns/"}
|
"CS": "http://calendarserver.org/ns/"}
|
||||||
|
|
||||||
|
|
||||||
|
for short, url in NAMESPACES.iteritems():
|
||||||
|
ET._namespace_map[url] = short
|
||||||
|
|
||||||
|
|
||||||
def _et_indent(elem, level=0):
|
def _et_indent(elem, level=0):
|
||||||
i = "\n" + level * " "
|
i = "\n" + level * " "
|
||||||
if len(elem):
|
if len(elem):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue