forked from github/pelican
PageClass arg is useless in content_object_init
This commit is contained in:
parent
c977e0aa25
commit
ed907b4094
2 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ class Page(object):
|
||||||
if 'summary' in metadata:
|
if 'summary' in metadata:
|
||||||
self._summary = metadata['summary']
|
self._summary = metadata['summary']
|
||||||
|
|
||||||
signals.content_object_init.send(self.__class__, instance=self)
|
signals.content_object_init.send(self)
|
||||||
|
|
||||||
def check_properties(self):
|
def check_properties(self):
|
||||||
"""test that each mandatory property is set."""
|
"""test that each mandatory property is set."""
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ def initialized(pelican):
|
||||||
pelican.settings.setdefault('SUMMARY_END_MARKER',
|
pelican.settings.setdefault('SUMMARY_END_MARKER',
|
||||||
'<!-- PELICAN_END_SUMMARY -->')
|
'<!-- PELICAN_END_SUMMARY -->')
|
||||||
|
|
||||||
def content_object_init(PageClass, instance):
|
def content_object_init(instance):
|
||||||
# if summary is already specified, use it
|
# if summary is already specified, use it
|
||||||
if 'summary' in instance.metadata:
|
if 'summary' in instance.metadata:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue