Browse Source

simplify custom plugin

pull/235/head
Oliverpool 8 years ago
parent
commit
a655f1584b
  1. 6
      test/test_content/datadir/python/content/customplugin.py

6
test/test_content/datadir/python/content/customplugin.py

@ -5,16 +5,10 @@ from patacrep.content import ContentItem, ContentList, validate_parser_argument
class FakeContent(ContentItem):
"""Fake content."""
def render(self, __context):
return 'fakecontent'
def file_entry(self):
return {'customname:':''}
#pylint: disable=unused-argument
def parse(keyword, argument, config):
"""
"""
return ContentList([FakeContent()])
CONTENT_PLUGINS = {'customname': parse}

Loading…
Cancel
Save