#6681: Problem with restructuredtext in markup module
-----------------------------------+----------------------------------------
          Reporter:  mtredinnick   |         Owner:  nobody    
            Status:  reopened      |     Milestone:            
         Component:  Contrib apps  |       Version:  SVN       
        Resolution:                |      Keywords:  markup bug
             Stage:  Accepted      |     Has_patch:  0         
        Needs_docs:  0             |   Needs_tests:  0         
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by forsberg):

 I'm experiencing the same problem. I ''think'' I have an idea on what's
 causing it. It seems like if the bug is triggered by a combination of the
 following:

 1. The apache process is just started.

 2. The first (I think it's the first, not sure) request that hits the
 process is for a page that requires processing by
 contrib.markup.templatetags.markup.restructuredtext.

 3. There's some interpreted text using the default role in the reST.
 Example:
 {{{
   `interpreted text using the default role`
 }}}

 This text will, in the standard case, be parsed by the reST role named by
 the variable DEFAULT_INTERPRETED_ROLE in docutils/parsers/rst/roles.py,
 but django/contrib/admindocs/utils.py (in rev 7967, it's line 100) sets it
 to 'cmsreference'. I think that's what's causing the problem. Verifying
 that right now by running my server which got lot's of these errors
 yesterday with a modified django where the offending line has been
 disabled.

 I have not analyzed why this ''seems'' to happen only now and then. I also
 don't know why admindocs/utils.py is setting DEFAULT_INTERPRETED_ROLE, but
 it does look like a bad thing to do.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6681#comment:7>
Django <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to