Browse Source

Let tagger plugin generate archives without any filename extension.

main
Stian Ellingsen 13 years ago
parent
commit
3625162f9f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      hyde/ext/plugins/tagger.py

+ 2
- 1
hyde/ext/plugins/tagger.py View File

@@ -142,5 +142,6 @@ class TaggerPlugin(Plugin):
"walk_resources_tagged_with_%s" % tag) "walk_resources_tagged_with_%s" % tag)
)) ))
archive_text = self.template.render(text, context) 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) archive_file.write(archive_text)

Loading…
Cancel
Save