*_SAVE_AS = None fix

Ability to disable creating some files when their `_SAVE_AS` setting is
set to none-value. Mostly for disabling creating of `authors` stuff
(when there only one user, see #320 for details)
This commit is contained in:
Pavel Puchkin 2012-04-18 18:56:53 +11:00
commit 6116236ed9
2 changed files with 4 additions and 1 deletions

View file

@ -99,6 +99,8 @@ class Writer(object):
:param **kwargs: additional variables to pass to the templates
"""
if not name: return
def _write_file(template, localcontext, output_path, name):
"""Render the template write the file."""
old_locale = locale.setlocale(locale.LC_ALL)