src/cm/views/export.py
changeset 460 2fdb7d095d5c
parent 455 33c7e20efcb7
child 494 6b3d72136e85
equal deleted inserted replaced
459:a69421197502 460:2fdb7d095d5c
   107     response.write(content)
   107     response.write(content)
   108     return response
   108     return response
   109 
   109 
   110 def xml_export(request, text_version, whichcomments):
   110 def xml_export(request, text_version, whichcomments):
   111   # Text version infos
   111   # Text version infos
   112   template_dict = { 'title': text_version.title, 'date': text_version.modified, 'format': text_version.format, 'content': text_version.content, 'tags': text_version.tags, }
   112   template_dict = { 'title': text_version.title, 'created': text_version.created, 'modified': text_version.modified, 'format': text_version.format, 'content': text_version.content, 'tags': text_version.tags, }
   113   
   113   
   114   # Comments
   114   # Comments
   115   comments = [] # whichcomments=="none"
   115   comments = [] # whichcomments=="none"
   116   if whichcomments == "filtered" or whichcomments == "all":
   116   if whichcomments == "filtered" or whichcomments == "all":
   117     _comments = text_version.comment_set.all()
   117     _comments = text_version.comment_set.all()