Permalink
Browse files

I'm confusing myself, original commit SHA: e819e8d) is the correct one.

The config is distributed with Blogofile, so no backwards
compatibility issue arises.
  • Loading branch information...
1 parent 86d9bee commit 8a66daffd0c7af8be03b2d59f8deaf7863c1cee8 @EnigmaCurry committed Mar 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 blogofile/writer.py
View
4 blogofile/writer.py
@@ -115,7 +115,7 @@ def __write_files(self):
#Copy this non-template file
f_path = util.path_join(root, t_fn)
logger.debug("Copying file: " + f_path)
- if getattr(self.config.site, 'overwrite_warning', True) and os.path.exists(path):
+ if self.config.site.overwrite_warning and os.path.exists(path):
logger.warn("Location is used more than once: {0}".format(f_path))
out_path = util.path_join(self.output_dir, f_path)
if self.bf.config.site.use_hard_links:
@@ -170,7 +170,7 @@ def materialize_template(self, template_name, location, attrs={}, lookup=None):
path = util.path_join(self.output_dir, location)
#Create the path if it doesn't exist:
util.mkdir(os.path.split(path)[0])
- if getattr(self.config.site, 'overwrite_warning', True) and os.path.exists(path):
+ if self.config.site.overwrite_warning and os.path.exists(path):
logger.warn("Location is used more than once: {0}".format(location))
f = open(path, "w")
f.write(rendered)

0 comments on commit 8a66daf

Please sign in to comment.