Functions | |
def | execute |
def | extract_titles |
Variables | |
string | _arg_editlink = r'(,\s*(?P<editlink>editlink))?' |
string | _arg_from = r'(,\s*from=(?P<fquote>[\'"])(?P<from>.+?)(?P=fquote))?' |
string | _arg_heading = r'(?P<heading>,)\s*(|(?P<hquote>[\'"])(?P<htext>.+?)(?P=hquote))' |
keep in sync with TableOfContents macro! | |
string | _arg_items = r'(,\s*items=(?P<items>\d+))?' |
string | _arg_level = r',\s*(?P<level>\d*)' |
string | _arg_skipitems = r'(,\s*skipitems=(?P<skipitems>\d+))?' |
string | _arg_sort = r'(,\s*sort=(?P<sort>(ascending|descending)))?' |
string | _arg_titlesonly = r'(,\s*(?P<titlesonly>titlesonly))?' |
string | _arg_to = r'(,\s*to=(?P<tquote>[\'"])(?P<to>.+?)(?P=tquote))?' |
string | _args_re_pattern = r'^(?P<name>[^,]+)(%s(%s)?%s%s%s%s%s%s%s)?$' |
string | _sysmsg = '<p><strong class="%s">%s</strong></p>' |
string | _title_re = r"^(?P<heading>\s*(?P<hmarker>=+)\s.*\s(?P=hmarker))$" |
list | Dependencies = ["time"] |
def macro::MenuInclude::execute | ( | macro, | ||
text, | ||||
args_re = re.compile(_args_re_pattern) , |
||||
title_re = re.compile(_title_re, re.M , |
||||
called_by_toc = 0 | ||||
) |
Definition at line 53 of file MenuInclude.py.
def macro::MenuInclude::extract_titles | ( | body, | ||
title_re | ||||
) |
Definition at line 42 of file MenuInclude.py.
string macro::MenuInclude::_arg_editlink = r'(,\s*(?P<editlink>editlink))?' |
Definition at line 35 of file MenuInclude.py.
string macro::MenuInclude::_arg_from = r'(,\s*from=(?P<fquote>[\'"])(?P<from>.+?)(?P=fquote))?' |
Definition at line 29 of file MenuInclude.py.
string macro::MenuInclude::_arg_heading = r'(?P<heading>,)\s*(|(?P<hquote>[\'"])(?P<htext>.+?)(?P=hquote))' |
keep in sync with TableOfContents macro!
Definition at line 27 of file MenuInclude.py.
string macro::MenuInclude::_arg_items = r'(,\s*items=(?P<items>\d+))?' |
Definition at line 32 of file MenuInclude.py.
string macro::MenuInclude::_arg_level = r',\s*(?P<level>\d*)' |
Definition at line 28 of file MenuInclude.py.
string macro::MenuInclude::_arg_skipitems = r'(,\s*skipitems=(?P<skipitems>\d+))?' |
Definition at line 33 of file MenuInclude.py.
string macro::MenuInclude::_arg_sort = r'(,\s*sort=(?P<sort>(ascending|descending)))?' |
Definition at line 31 of file MenuInclude.py.
string macro::MenuInclude::_arg_titlesonly = r'(,\s*(?P<titlesonly>titlesonly))?' |
Definition at line 34 of file MenuInclude.py.
string macro::MenuInclude::_arg_to = r'(,\s*to=(?P<tquote>[\'"])(?P<to>.+?)(?P=tquote))?' |
Definition at line 30 of file MenuInclude.py.
string macro::MenuInclude::_args_re_pattern = r'^(?P<name>[^,]+)(%s(%s)?%s%s%s%s%s%s%s)?$' |
Definition at line 36 of file MenuInclude.py.
string macro::MenuInclude::_sysmsg = '<p><strong class="%s">%s</strong></p>' |
Definition at line 24 of file MenuInclude.py.
string macro::MenuInclude::_title_re = r"^(?P<heading>\s*(?P<hmarker>=+)\s.*\s(?P=hmarker))$" |
Definition at line 40 of file MenuInclude.py.
list macro::MenuInclude::Dependencies = ["time"] |
Definition at line 17 of file MenuInclude.py.