Hello, I am new here. I need my .po files to have certain permissions, specifically 664 and not 600. Because savestore() uses tempfile.mkstemp and shutil.move I will always get 600 regardless of my umask.
Here is the fix: --- local_apps/pootle_store/fields.py 2012-02-10 15:59:03.698008000 -0800 +++ local_apps/pootle_store/fields.py.new 2012-02-10 15:58:41.760740000 -0800 @@ -200,7 +200,8 @@ tmpfile, tmpfilename = tempfile.mkstemp(suffix=self.filename) os.close(tmpfile) self.store.savefile(tmpfilename) - shutil.move(tmpfilename, self.realpath) + shutil.copyfile(tmpfilename, self.realpath) + os.remove(tmpfilename) self._touch_store_cache() def save(self, name, content, save=True): If you like it, please adopt it, or I would be happy to commit it to svn. Thanks, Chris Fulton ________________________________ IMPORTANT: This email message is intended only for the use of the individual to whom, or entity to which, it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are NOT the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please reply to the sender immediately and permanently delete this email. Thank you. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle