comparison piecrust/sources/posts.py @ 259:adb066ffb363

Merge docs.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 22 Feb 2015 22:03:54 -0800
parents ba857c693c72
children 0641fe5c3ef9
comparison
equal deleted inserted replaced
258:7ec06ec14247 259:adb066ffb363
51 ext = self.supported_extensions[0] 51 ext = self.supported_extensions[0]
52 elif mode == MODE_CREATING and self.default_auto_format: 52 elif mode == MODE_CREATING and self.default_auto_format:
53 ext = self.default_auto_format 53 ext = self.default_auto_format
54 54
55 replacements = { 55 replacements = {
56 'year': '%04d' % year, 56 'year': '%04d' % year if year is not None else None,
57 'month': '%02d' % month, 57 'month': '%02d' % month if month is not None else None,
58 'day': '%02d' % day, 58 'day': '%02d' % day if day is not None else None,
59 'slug': slug, 59 'slug': slug,
60 'ext': ext 60 'ext': ext
61 } 61 }
62 needs_recapture = False 62 needs_recapture = False
63 if year is None: 63 if year is None: