Skip to content
Permalink
Browse files
lint
  • Loading branch information
ralsina committed Apr 15, 2018
1 parent 2d30008 commit 792c5dcb3f58fd3ac8b4f8b9bfd24667f0496b86
Showing with 5 additions and 12 deletions.
  1. +0 −6 nikola/plugins/compile/rest/post_list.py
  2. +5 −6 nikola/plugins/shortcode/post_list.py
@@ -25,17 +25,11 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""Post list directive for reStructuredText."""

import os
import uuid
import natsort
import operator

from docutils import nodes
from docutils.parsers.rst import Directive, directives

from nikola import utils
from nikola.plugin_categories import RestExtension
from nikola.packages.datecond import date_in_range

# from nikola.plugins.shortcode.post_list import _do_post_list

@@ -32,8 +32,6 @@
import uuid

import natsort
from docutils import nodes
from docutils.parsers.rst import Directive, directives

from nikola import utils
from nikola.packages.datecond import date_in_range
@@ -46,9 +44,9 @@ class Plugin(ShortcodePlugin):
name = "post_list"

def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_tags=False, categories=None,
sections=None, slugs=None, post_type='post', type=False,
lang=None, template='post_list_directive.tmpl', sort=None,
id=None, data=None, state=None, site=None, date=None, filename=None, post=None):
sections=None, slugs=None, post_type='post', type=False,
lang=None, template='post_list_directive.tmpl', sort=None,
id=None, data=None, state=None, site=None, date=None, filename=None, post=None):
if lang is None:
lang = utils.LocaleBorg().current_lang
if site.invariant: # for testing purposes
@@ -162,5 +160,6 @@ def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_t
template, None, template_data)
return output, template_deps


# Request file name from shortcode (Issue #2412)
Plugin.handler.nikola_shortcode_pass_filename = True
Plugin.handler.nikola_shortcode_pass_filename = True

0 comments on commit 792c5dc

Please sign in to comment.