1.1 --- a/imip_store.py Thu Oct 30 19:35:40 2014 +0100
1.2 +++ b/imip_store.py Thu Oct 30 21:53:56 2014 +0100
1.3 @@ -3,7 +3,7 @@
1.4 from datetime import datetime
1.5 from imiptools.config import STORE_DIR, PUBLISH_DIR
1.6 from os.path import abspath, commonprefix, exists, join, split
1.7 -from os import makedirs
1.8 +from os import chmod, makedirs
1.9 from vCalendar import iterwrite
1.10
1.11 def check_dir(base, dir):
1.12 @@ -80,6 +80,7 @@
1.13 to_stream(f, node)
1.14 finally:
1.15 f.close()
1.16 + chmod(filename, 0660)
1.17
1.18 return True
1.19
1.20 @@ -114,6 +115,7 @@
1.21 f.write("\t".join(item) + "\n")
1.22 finally:
1.23 f.close()
1.24 + chmod(filename, 0660)
1.25
1.26 return True
1.27
1.28 @@ -145,6 +147,7 @@
1.29 print >>f, request
1.30 finally:
1.31 f.close()
1.32 + chmod(filename, 0660)
1.33
1.34 return True
1.35
1.36 @@ -161,6 +164,7 @@
1.37 print >>f, request
1.38 finally:
1.39 f.close()
1.40 + chmod(filename, 0660)
1.41
1.42 return True
1.43
1.44 @@ -205,6 +209,7 @@
1.45 to_stream(f, make_calendar([("VFREEBUSY", {}, record)], "PUBLISH"))
1.46 finally:
1.47 f.close()
1.48 + chmod(filename, 0660)
1.49
1.50 return True
1.51