2015-10-21
- jennifer
- martym
| # Save as ~/.mailcap. Then use run-mailcap to: | |
| # | |
| # - open files by `run-mailcap --action=view <file>`, or | |
| # - view them in the terminal by `run-mailcap --action=cat <file>`. | |
| # | |
| # Useful | |
| # | |
| # - in mutt by `set mailcap_file $HOME/.mailcap` | |
| # - in Vim by adding to your vimrc | |
| # |
| # -*- coding: utf-8 -*- | |
| import codecs | |
| import subprocess | |
| from fdfgen import forge_fdf | |
| from django.template import Template, loader | |
| from django.template.loader import find_template, LoaderOrigin | |
| class PdfTemplateError(Exception): |
| from oauth2 import Error | |
| from django.utils.translation import ugettext as _ | |
| from tastypie.authentication import Authentication | |
| from oauth_provider.utils import initialize_server_request, send_oauth_error, get_oauth_request | |
| from oauth_provider.consts import OAUTH_PARAMETERS_NAMES | |
| from oauth_provider.store import store, InvalidTokenError |