| Trees | Indices | Help |
|
|---|
'trac.wiki'
Imports: re, tag, cached, BoolOption, ListOption, IResourceManager, all, _, WikiParser, Component, ExtensionPoint, Interface, TracError, implements
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'})
args - macros arguments, as plain textstrict - if True, only Python-like identifiers will be
recognized as keyword argumentspagename - wiki page name to validate| Trees | Indices | Help |
|
|---|