Skip to content
Permalink
Browse files

add PostScanner to categories

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 9, 2015
1 parent 597732d commit 2f7dd8ff3ba776ebbc4eb6e15f90d3d6ab2671b3
Showing with 6 additions and 3 deletions.
  1. +2 −2 nikola/nikola.py
  2. +4 −1 nikola/plugin_categories.py
@@ -30,7 +30,6 @@
from copy import copy
from pkg_resources import resource_filename
import datetime
import glob
import locale
import os
import json
@@ -54,7 +53,6 @@
from yapsy.PluginManager import PluginManager
from blinker import signal

from .post import Post
from . import DEBUG, utils
from .plugin_categories import (
Command,
@@ -67,6 +65,7 @@
TemplateSystem,
SignalHandler,
ConfigPlugin,
PostScanner,
)

if DEBUG:
@@ -667,6 +666,7 @@ def __init__(self, **config):
"MarkdownExtension": MarkdownExtension,
"SignalHandler": SignalHandler,
"ConfigPlugin": ConfigPlugin,
"PostScanner": PostScanner,
})
self.plugin_manager.setPluginInfoExtension('plugin')
extra_plugins_dirs = self.config['EXTRA_PLUGINS_DIRS']
@@ -42,7 +42,9 @@
'Task',
'TaskMultiplier',
'TemplateSystem',
'SignalHandler'
'SignalHandler',
'ConfigPlugin',
'PostScanner',
]


@@ -79,6 +81,7 @@ def inject_dependency(self, target, dependency):
"""Add 'dependency' to the target task's task_deps"""
self.site.injected_deps[target].append(dependency)


class PostScanner(BasePlugin):
"""The scan method of these plugins is called by Nikola.scan_posts."""

0 comments on commit 2f7dd8f

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