Skip to content

Commit 2f7dd8f

Browse files
committedMay 9, 2015
add PostScanner to categories
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 597732d commit 2f7dd8f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

Diff for: ‎nikola/nikola.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from copy import copy
3131
from pkg_resources import resource_filename
3232
import datetime
33-
import glob
3433
import locale
3534
import os
3635
import json
@@ -54,7 +53,6 @@
5453
from yapsy.PluginManager import PluginManager
5554
from blinker import signal
5655

57-
from .post import Post
5856
from . import DEBUG, utils
5957
from .plugin_categories import (
6058
Command,
@@ -67,6 +65,7 @@
6765
TemplateSystem,
6866
SignalHandler,
6967
ConfigPlugin,
68+
PostScanner,
7069
)
7170

7271
if DEBUG:
@@ -667,6 +666,7 @@ def __init__(self, **config):
667666
"MarkdownExtension": MarkdownExtension,
668667
"SignalHandler": SignalHandler,
669668
"ConfigPlugin": ConfigPlugin,
669+
"PostScanner": PostScanner,
670670
})
671671
self.plugin_manager.setPluginInfoExtension('plugin')
672672
extra_plugins_dirs = self.config['EXTRA_PLUGINS_DIRS']

Diff for: ‎nikola/plugin_categories.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
'Task',
4343
'TaskMultiplier',
4444
'TemplateSystem',
45-
'SignalHandler'
45+
'SignalHandler',
46+
'ConfigPlugin',
47+
'PostScanner',
4648
]
4749

4850

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

84+
8285
class PostScanner(BasePlugin):
8386
"""The scan method of these plugins is called by Nikola.scan_posts."""
8487

0 commit comments

Comments
 (0)
Please sign in to comment.