1
0
Fork 0
forked from github/pelican

Merge branch 'master' of github.com:ametaireau/pelican

This commit is contained in:
Alexis Metaireau 2011-05-07 22:53:06 +01:00
commit 3641703a49
4 changed files with 24 additions and 18 deletions

View file

@ -6,8 +6,7 @@ class Page(object):
"""Represents a page
Given a content, and metadata, create an adequate object.
:param string: the string to parse, containing the original content.
:param markup: the markup language to use while parsing.
:param content: the string to parse, containing the original content.
"""
mandatory_properties = ('title',)
@ -93,6 +92,6 @@ def is_valid_content(content, f):
try:
content.check_properties()
return True
except NameError as e:
except NameError, e:
error(u"Skipping %s: impossible to find informations about '%s'" % (f, e))
return False