From 3625162f9f4a2d983563542733d959661308567d Mon Sep 17 00:00:00 2001 From: Stian Ellingsen Date: Mon, 30 May 2011 17:36:23 +0200 Subject: [PATCH] Let tagger plugin generate archives without any filename extension. --- hyde/ext/plugins/tagger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyde/ext/plugins/tagger.py b/hyde/ext/plugins/tagger.py index 7551d7e..ec34c03 100644 --- a/hyde/ext/plugins/tagger.py +++ b/hyde/ext/plugins/tagger.py @@ -142,5 +142,6 @@ class TaggerPlugin(Plugin): "walk_resources_tagged_with_%s" % tag) )) archive_text = self.template.render(text, context) - archive_file = File(target.child("%s.%s" % (tag, extension))) + archive_file = File(target.child("%s.%s" % (tag, extension) + if extension is not None else tag)) archive_file.write(archive_text)