#2910: [patch] Add extension support to Markdown filter
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: wayla
Status: new | Component: Contrib apps
Version: SVN | Resolution:
Keywords: markup markdown | Stage: Design decision needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------+-------------------------------------------
Comment (by [EMAIL PROTECTED]):
There is a problem with this patch in combination with mod_wsgi: when
using the markdown filter without any arguments, {{{arg}}} is {{{''}}}, so
{{{extensions}}} ends up being {{{['']}}}. This causes markdown to print
the following on stdout:
{{{couldn't load extension (looking for mdx_ module)}}}
when running under mod_wsgi this results in the following exception:
{{{IOError: sys.stdout access restricted by mod_wsgi}}}
because mod_wsgi disables writing to stdout. see
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
It can be worked around by filtering out empty values: {{{extensions = [e
for e in arg.split(",") if e]}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/2910#comment:12>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---