PostListDirective

class ablog.post.PostListDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)

Bases: Directive

Handle postlist directives.

Attributes Summary

final_argument_whitespace

May the final argument contain whitespace?

has_content

May the directive have content?

option_spec

Mapping of option names to validator functions.

optional_arguments

Number of optional arguments after the required arguments.

required_arguments

Number of required directive arguments.

Methods Summary

run()

Attributes Documentation

final_argument_whitespace = False

May the final argument contain whitespace?

has_content = False

May the directive have content?

option_spec = {'author': <function _split>, 'category': <function _split>, 'date': <function PostListDirective.<lambda>>, 'excerpts': <function flag>, 'expand': <function unchanged>, 'format': <function PostListDirective.<lambda>>, 'language': <function _split>, 'list-style': <function PostListDirective.<lambda>>, 'location': <function _split>, 'sort': <function flag>, 'tags': <function _split>}

Mapping of option names to validator functions.

optional_arguments = 1

Number of optional arguments after the required arguments.

required_arguments = 0

Number of required directive arguments.

Methods Documentation

run()

Comments

comments powered by Disqus