ASCII media type support & fix a bug in file submission error handling
authorJoar Wandborg <git@wandborg.com>
Wed, 30 Nov 2011 20:21:39 +0000 (21:21 +0100)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 31 Dec 2011 16:32:52 +0000 (10:32 -0600)
commita246ccca69e863904718537f45a17d226b33a123
tree599aad1e47d56bf064430f10cdb378c59e2437ce
parent992e4f80324e5e2d0079fd70cce9d4ad962f7047
ASCII media type support & fix a bug in file submission error handling

* Added ASCII media processing
* Added ASCII media display
* Added ASCII media type

Rebased from Joar Wandborg's ascii art branch (squashed to remove the
commits borrowing code of dubious license)

Fixed a bug in file submission error handling:
 - Moved file-extension condition out of loop (what did it do there?)
 - Updated file submission tests
 - Changed error handling in file submission, should now report more
   than absolutely necessary.
18 files changed:
extlib/inconsolata/INFO.txt [new file with mode: 0644]
extlib/inconsolata/Inconsolata.otf [new file with mode: 0644]
extlib/inconsolata/Inconsolata.pfa [new file with mode: 0644]
extlib/inconsolata/Inconsolata.sfd [new file with mode: 0644]
extlib/inconsolata/OFL_1.1.txt [new file with mode: 0644]
extlib/inconsolata/textest.pdf [new file with mode: 0644]
mediagoblin/media_types/__init__.py
mediagoblin/media_types/ascii/__init__.py [new file with mode: 0644]
mediagoblin/media_types/ascii/asciitoimage.py [new file with mode: 0644]
mediagoblin/media_types/ascii/fonts/Inconsolata.otf [new symlink]
mediagoblin/media_types/ascii/processing.py [new file with mode: 0644]
mediagoblin/static/css/base.css
mediagoblin/static/fonts/Inconsolata.otf [new symlink]
mediagoblin/submit/views.py
mediagoblin/templates/mediagoblin/media_displays/ascii.html [new file with mode: 0644]
mediagoblin/templates/mediagoblin/media_displays/image.html
mediagoblin/templates/mediagoblin/media_displays/video.html
mediagoblin/tests/test_submission.py