Changes between Version 12 and Version 13 of AdvParseArgsPlugin


Ignore:
Timestamp:
May 11, 2015, 5:00:23 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • AdvParseArgsPlugin

    v12 v13  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Advanced Argument Parser for WikiMacros =
     3= Advanced Argument Parser for WikiMacros
    44
    5 == Description ==
     5== Description
    66
    7 This plug-in provides an advanced version of the `parse_args` function for WikiMacros.
     7This plugin provides an advanced version of the `parse_args` function for WikiMacros.
    88
    9 This function is used in WikiMacros to parse the macro arguments. This enhanced version is meant as a replacement of `trac.wiki.macros.parse_args` and supports several advanced options (see section [#Parameters]). The most important feature is the support for quoting the delimiter, e.g. '`key1=val1,key2="some,text",key3=val3`' will correctly return '`some,text`' as the value of `key2`. The original `parse_args` function would return '`"some`' and handle '`text"`' as separate argument.
     9This function is used in WikiMacros to parse the macro arguments. This enhanced version is meant as a replacement of `trac.wiki.macros.parse_args` and supports several advanced options, see section [#Parameters]. The most important feature is the support for quoting the delimiter, eg `key1=val1, key2="some,text", key3=val3` will correctly return `some,text` as the value of `key2`. The original `parse_args` function would return `"some` and handle `text"` as separate argument.
    1010
    11 == Documentation ==
     11Trac-hacks which use this plugin:
    1212
    13 === Definition ===
    14 {{{
    15 #!python
     13  * GoogleMapMacro
     14  * GoogleStaticMapMacro
     15  * ListOfWikiPagesMacro
     16  * TicketStatsMacro
     17  * TicketChartsMacro
     18
     19== Documentation
     20
     21=== Definition
     22
     23{{{#!python
    1624def parse_args (args, strict = True, multi = False, listonly = False, minlen = 0,
    1725        quotechar = '"', escchar = '\\', delim = ',', delquotes = False)
    1826}}}
    1927
    20 === Usage Example ===
     28=== Usage Example
    2129
    22 {{{
    23 #!python
     30{{{#!python
    2431# Instead of: from trac.wiki.macros import parse_args
    2532# Use:
    2633from tracadvparseargs import *
    27 
    2834
    2935class SomeMacro(WikiMacroBase):
     
    3238}}}
    3339
    34 === Parameters ===
     40=== Parameters
     41
    3542 `args`:: The argument string; 'content' in `expand_macro. This is the only mandatory argument.
    3643 `strict`:: Enables strict checking of keys.
     
    5259 `delquotes`:: Selects if quotes should be removed.
    5360
    54 == TracHacks Macros which use this Function ==
    55   * GoogleMapMacro
    56   * GoogleStaticMapMacro
    57   * ListOfWikiPagesMacro
    58   * TicketStatsMacro
    59   * TicketChartsMacro
    60 
    61 == Bugs/Feature Requests ==
     61== Bugs/Feature Requests
    6262
    6363Existing bugs and feature requests for AdvParseArgsPlugin are
     
    6767[http://trac-hacks.org/newticket?component=AdvParseArgsPlugin&owner=martin_s new ticket].
    6868
    69 == Download ==
     69[[TicketQuery(component=AdvParseArgsPlugin&group=type,format=progress)]]
     70
     71== Download
    7072
    7173Download the zipped source from [download:advparseargsplugin/0.11 here].
     
    7577This package is also available from the [http://pypi.python.org/pypi/TracAdvParseArgsPlugin Python Package Index].
    7678
    77 == Source ==
     79== Source
    7880
    7981You can check out AdvParseArgsPlugin from [http://trac-hacks.org/svn/advparseargsplugin here] using Subversion, or [source:advparseargsplugin browse the source] with Trac.
    8082
    81 
    82 == Recent Changes ==
     83== Recent Changes
    8384
    8485[[ChangeLog(advparseargsplugin, 3)]]
    8586
    86 == Author/Contributors ==
     87== Author/Contributors
    8788
    8889'''Author:''' [wiki:martin_s] [[BR]]
    89 '''Maintainer:''' [wiki:martin_s] [[BR]]
     90'''Maintainer:''' [[Maintainer]] [[BR]]
    9091'''Contributors:'''