[damned-lies] Test readability of potfile, not execute bit



commit b250d3ce40e4b52c4d20ce475b3b0b6e5c776d6e
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Sep 4 23:15:55 2009 +0200

    Test readability of potfile, not execute bit

 stats/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/views.py b/stats/views.py
index 7a53b49..5b3ee66 100644
--- a/stats/views.py
+++ b/stats/views.py
@@ -168,7 +168,7 @@ def dynamic_po(request, filename):
                              domain__name=domain,
                              language=None)
     file_path = potfile.po_path().encode('ascii')
-    if not os.access(file_path, os.X_OK):
+    if not os.access(file_path, os.R_OK):
         raise Http404
 
     dyn_content = u"""# %(lang)s translation for %(pack)s.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]