From 43b362dc14418d8bce8a32ed35f27cd19925ee2d Mon Sep 17 00:00:00 2001
From: Mike Bayer <mike_mp@zzzcomputing.com>
Date: Fri, 20 Mar 2009 00:05:31 +0000
Subject: [PATCH] - When Mako creates subdirectories in which   to store
 templates, it uses the more   permissive mode of 0775 instead of 0750,  
 helping out with certain multi-process   scenarios. Note that the mode is
 always   subject to the restrictions of the existing   umask. [ticket:101]

---
 CHANGES          | 8 ++++++++
 lib/mako/util.py | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/CHANGES b/CHANGES
index c58b10a..37d772c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,14 @@
   custom caching algorithms, not sure what
   other uses there may be (but there may be).
   Examples are in the "filtering" docs.
+
+- When Mako creates subdirectories in which
+  to store templates, it uses the more
+  permissive mode of 0775 instead of 0750,
+  helping out with certain multi-process 
+  scenarios. Note that the mode is always
+  subject to the restrictions of the existing
+  umask. [ticket:101]
   
 - Fixed namespace.__getattr__() to raise 
   AttributeError on attribute not found 
diff --git a/lib/mako/util.py b/lib/mako/util.py
index 0141093..4678131 100644
--- a/lib/mako/util.py
+++ b/lib/mako/util.py
@@ -38,7 +38,7 @@ def verify_directory(dir):
     while not os.path.exists(dir):
         try:
             tries += 1
-            os.makedirs(dir, 0750)
+            os.makedirs(dir, 0775)
         except:
             if tries > 5:
                 raise
-- 
GitLab