xmlListTemplate=Template("""<list>{% for item in items %}<item>{% for prop,val in item.iteritems() %}<{{prop}}>{{val}}</{{prop}}>{% endfor %}</item>{% endfor %}</list>""")
xmlTemplate=Template("""<item>{% for prop,val in item.iteritems() %}<{{prop}}>{{val}}</{{prop}}>{% endfor %}</item>""")
defconvertForSerialization(object):
defconvertForSerialization(obj):
"""Converts anything (clas,tuples,list) to the safe serializable equivalent"""