wiki:AdvParseArgsPlugin

Version 1 (modified by Martin Scharrer, 8 years ago) (diff)

New hack AdvParseArgsPlugin, created by martin_s

Advanced Argument Parser for Trac Macros

Description

This plug-in provides an advanced version of the parse_args function for Trac macros.

Documentation

Parameters

args
The argument string; 'content' in `expand_macro.
strict
Enables strict checking of keys.
multi
Enables folding of muliple given keys into list.
listonly
If true only a list is returned, no directionary.
minlen
Extend returned list to given minimum length. Only used when listonly=True.

Parser parameters

quotechar
The quote character to be used.
escchar
The escape character to be used.
delim
The delimiter character to be used.
delquotes
Selects if quotes should be removed.

Bugs/Feature Requests

Existing bugs and feature requests for AdvParseArgsPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:advparseargsplugin here].

Source

You can check out AdvParseArgsPlugin from here using Subversion, or browse the source with Trac.

Example

from tracadvparseargs import parse_args

Recent Changes

16394 by rjollos on 2017-03-25 09:20:58
Remove eggs
15264 by rjollos on 2016-02-11 04:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

13612 by rjollos on 2014-01-24 00:45:47
Changed license to BSD 3-Clause with permission of author (comment:1:ticket:11500). Fixes #11500.
(more)

Author/Contributors

Author: martin_s
Contributors: