#1194: [patch] Check for file permissions for proper error messages
-------------------+--------------------------------------------------------
   Reporter:  Tim  |                Owner:  adrian                
     Status:  new  |            Component:  Core framework        
    Version:       |           Resolution:                        
   Keywords:       |                Stage:  Design decision needed
  Has_patch:  1    |           Needs_docs:  0                     
Needs_tests:  1    |   Needs_better_patch:  0                     
-------------------+--------------------------------------------------------
Changes (by [EMAIL PROTECTED]):

 * cc: [EMAIL PROTECTED] (added)
  * has_patch:  0 => 1
  * needs_tests:  0 => 1
  * summary:  Check for file permissions for proper error messages =>
              [patch] Check for file permissions for proper
              error messages

Comment:

 I don't know much about the template loading system, but this patch should
 generate a different exception if a file is found in the template path,
 but could not be read due to access permissions.  The exception raised is
 a subclass of `TemplateDoesNotExist`, so try/except blocks elsewhere in
 the code should work.  I am not sure about the `errno` module's cross-
 compatibility... does anyone know if this will work with Windows or OS X?

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

Reply via email to