CenterForOpenScience/osf.io — pull request #1349 by sloria (2014-12-04 19:48:07+00:00)
Title: [hotfix] Prevent unnecessary FS access when building log templates

Previously, each addon was opening the _log_templates.mako in
append mode. This may have resulted in a race condition that
caused the file to be written in an incomplete state.

This patch ensures that _log_templates.mako is only opened
once at run time.

Attempt to fix #1341

thanks @lyndsysimon for looking this over with me