Skip to content
Permalink
Browse files

core: plugins: fix wrong calling of 'content_parsed'

Signed-off-by: Florian Scherf <f.scherf@pengutronix.de>
  • Loading branch information...
fscherf committed Aug 10, 2019
1 parent 69c5546 commit 4a5e84d35f6c2ef6b832847c8eb6c905fd522516
@@ -2,7 +2,7 @@ class ExamplePlugin:
def parser_setup(self, context):
pass

def content_parsed(self, context):
def content_parsed(self, context, content):
pass

def contents_parsed(self, context):
@@ -31,7 +31,7 @@ def __init__(self, settings):
# fake initial build
for content in self.context.contents:
self.context.content = content
self.context.run_plugin_hook('content_parsed')
self.context.run_plugin_hook('content_parsed', content)

self.context.run_plugin_hook('contents_parsed')
self.context.run_plugin_hook('pre_build')

0 comments on commit 4a5e84d

Please sign in to comment.
You can’t perform that action at this time.