MoinMoin.macro package

Submodules

MoinMoin.macro.Anchor module

MoinMoin - Anchor Macro to put an anchor at the place where it is used.

class MoinMoin.macro.Anchor.Macro[source]

Bases: MoinMoin.macro._base.MacroInlineBase

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.Date module

MoinMoin Date macro - outputs the date for some specific point in time, adapted to the TZ settings of the user viewing the content.

class MoinMoin.macro.Date.Macro[source]

Bases: MoinMoin.macro.Date.MacroDateTimeBase

macro(content, arguments, page_url, alternative)[source]
class MoinMoin.macro.Date.MacroDateTimeBase[source]

Bases: MoinMoin.macro._base.MacroInlineBase

parse_time(args)[source]

parse a time specification argument for usage by Date and DateTime macro

Parameters:args – YYYY-MM-DDTHH:MM:SS (plus optional Z for UTC, or +/-HHMM) or float/int UNIX timestamp
Returns:UNIX timestamp (UTC)

MoinMoin.macro.DateTime module

MoinMoin DateTime macro - outputs the date and time for some specific point in time, adapted to the TZ settings of the user viewing the content.

class MoinMoin.macro.DateTime.Macro[source]

Bases: MoinMoin.macro.Date.MacroDateTimeBase

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.GetText module

MoinMoin - Load I18N Text

This macro has the main purpose of supporting Help* page authors to insert the texts that a user actually sees on his screen into the description of the related features (which otherwise could get very confusing).

class MoinMoin.macro.GetText.Macro[source]

Bases: MoinMoin.macro._base.MacroInlineBase

Return a translation of args, or args as is

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.GetVal module

MoinMoin GetVal macro - gets a value for a specified key from a dict.

class MoinMoin.macro.GetVal.Macro[source]

Bases: MoinMoin.macro._base.MacroInlineBase

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.HighlighterList module

HighlighterList - display a list of Pygments lexers

Usage: <<HighlighterList>>

class MoinMoin.macro.HighlighterList.Macro[source]

Bases: MoinMoin.macro._base.MacroBlockBase

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.MailTo module

MoinMoin - MailTo Macro displays an E-Mail address (either a valid mailto: link for logged in users or the obfuscated display passed as the first macro argument).

class MoinMoin.macro.MailTo.Macro[source]

Bases: MoinMoin.macro._base.MacroInlineBase

macro(content, arguments, page_url, alternative)[source]

Invocation: <<MailTo(user AT example DOT org, write me)>> where 2nd parameter is optional.

MoinMoin.macro.PagenameList module

PagenameList - list pages with names matching a string or regex

Note: PageList is a similar thing using the search engine.

class MoinMoin.macro.PagenameList.Macro[source]

Bases: MoinMoin.macro._base.MacroPageLinkListBase

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.RandomItem module

MoinMoin - RandomItem Macro displays one or multiple random item links.

TODO: add mimetype param and only show items matching this mimetype

class MoinMoin.macro.RandomItem.Macro[source]

Bases: MoinMoin.macro._base.MacroPageLinkListBase

macro(content, arguments, page_url, alternative)[source]

MoinMoin.macro.Verbatim module

Output the input text as is: <<Verbatim(return same __text__ ‘’‘as’‘’ entered)>>

class MoinMoin.macro.Verbatim.Macro[source]

Bases: MoinMoin.macro._base.MacroInlineBase

macro(content, arguments, page_url, alternative)[source]

Module contents

MoinMoin - New style macros

Macros are used to implement complex and/or dynamic page content.

These new-style macros use a class interface and always work on the internal tree representation of the document.

TODO: Merge with converters