-
Notifications
You must be signed in to change notification settings - Fork 464
Refactor scanposts (Issue #1700) #1708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
"""Scan all the posts.""" | ||
if self._scanned and not really: | ||
# FIXME this is temporary while moving things out to a plugin | ||
# Why doesn't getPluginByName work???? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are you calling it? This will work:
site.plugin_manager.getPluginByName('scan_posts', 'PostScanner')
(also, PostScanner was not added as a category; fixed in 2f7dd8f)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a "rescan_posts" method that clears _scanned and calls scan_posts instead.
"""Creates a list of posts from some source. Returns timeline, global_data: | ||
timeline is a list of Post objects | ||
global_data is a dictionary where keys are source paths and values are posts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is global_data
still in use? It seems that neither the scan_posts
plugin uses it, nor does Nikola.scan_posts
expects it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had deleted it, forgot to fix the docstrings
@felixfontein looks like merging the hierarchical tags broke this branch... can you give me a hand and see what it is? I get
|
While merging, you reverted one change done in the category_hierarchy branch. I re-added that change, and now it should work :-) |
Refactor scanposts (Issue #1700)
I thought we were supposed to have a v7.5.0? |
Sure, we will. This is not backwards-incompatible. |
See Issue #1700 for details.
This branch should not cause any visible change in behaviour :-)