Trees Indices Help
Trac
Package trac :: Package wiki :: Module api

Module api

source code

Classes
IWikiChangeListener
Extension point interface for components that should get notified about the creation, deletion and modification of wiki pages.
IWikiPageManipulator
Extension point interface for components that need to do specific pre and post processing of wiki page changes.
IWikiMacroProvider
Extension point interface for components that provide Wiki macros
IWikiSyntaxProvider
WikiSystem
Wiki system manager.
Functions
parse_args(args, strict=True)
Utility for parsing macro "content" and splitting them into arguments. source code
validate_page_name(pagename)
Utility for validating wiki page name. source code
Variables
__package__ = 'trac.wiki'

Imports: re, tag, cached, BoolOption, ListOption, IResourceManager, all, _, WikiParser, Component, ExtensionPoint, Interface, TracError, implements


Function Details

parse_args(args, strict=True)

source code

Utility for parsing macro "content" and splitting them into arguments.

The content is split along commas, unless they are escaped with a backquote (like this: ,).

Example usage:

>>> parse_args('')
([], {})
>>> parse_args('Some text')
(['Some text'], {})
>>> parse_args('Some text, mode= 3, some other arg,円 with a comma.')
(['Some text', ' some other arg, with a comma.'], {'mode': ' 3'})
>>> parse_args('milestone=milestone1,status!=closed', strict=False)
([], {'status!': 'closed', 'milestone': 'milestone1'})
Parameters:
  • args - macros arguments, as plain text
  • strict - if True, only Python-like identifiers will be recognized as keyword arguments

validate_page_name(pagename)

source code
Utility for validating wiki page name.
Parameters:
  • pagename - wiki page name to validate

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /