src/cm/views/export.py
changeset 56 bd8a4ffc7dad
parent 0 40c8f766c9b8
child 57 b32aa76ee411
equal deleted inserted replaced
49:1b92513d7081 56:bd8a4ffc7dad
    21 # raw export
    21 # raw export
    22 'raw' : {'mimetype': 'text/plain', 'extension':'txt'}
    22 'raw' : {'mimetype': 'text/plain', 'extension':'txt'}
    23 }
    23 }
    24 def content_export2(request, content, title, content_format, format, use_pandoc, download_response):
    24 def content_export2(request, content, title, content_format, format, use_pandoc, download_response):
    25     # TODO : formats must be imported from converters
    25     # TODO : formats must be imported from converters
    26     #import pdb;pdb.set_trace()
    26 #    import pdb;pdb.set_trace()
    27     if format == 'raw' :
    27     if format == 'raw' :
    28         export_content = content
    28         export_content = content
    29     elif content_format == 'html' and format == 'html':
    29     elif content_format == 'html' and format == 'html':
    30         export_content = HTML_HEADER % content
    30         export_content = HTML_HEADER % content
    31     elif content_format == 'markdown' and format == 'markdown':
    31     elif content_format == 'markdown' and format == 'markdown':