mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-19 04:19:54 +01:00
8dbd54ac16
We accomplish this by attching files to out-bound mail diffrently depending on the versino of Python in effect. In Py2 we can read the files ourseles and the standard library will still be able to use the text we pass as if it were bytes. Under Py3, however, email.message will complain if it doesn't get to decode the bytes itself, so instead of attaching the contents directly we just pass the path to the file as a string instead. Unfortunately, Django 1.8 does not work with this Python 3 approach, due to its not yet having reverted to the newly improved standard library's mail-message implementation, and thus requiring us to know more about the character-encoding/mimetype of the attachment than I've been able to gather cleanly by this point. |
||
---|---|---|
.. | ||
fixtures | ||
locale | ||
management | ||
migrations | ||
static/helpdesk | ||
templates/helpdesk | ||
templatetags | ||
tests | ||
views | ||
__init__.py | ||
admin.py | ||
akismet.py | ||
apps.py | ||
forms.py | ||
lib.py | ||
models.py | ||
poll_helpdesk_email_queues.sh | ||
settings.py | ||
urls.py |