1
0
Fork 0
forked from github/pelican

Add the possibility to publish drafts. Fixes #111

This commit is contained in:
Alexis Metaireau 2011-05-08 14:58:57 +01:00
commit 6b44d93780
5 changed files with 32 additions and 6 deletions

View file

@ -62,6 +62,9 @@ class Page(object):
if not hasattr(self, 'summary'):
self.summary = property(lambda self: truncate_html_words(self.content, 50)).__get__(self, Page)
if not hasattr(self, 'status'):
self.status = settings['DEFAULT_STATUS']
# store the settings ref.
self._settings = settings