1.1 --- a/MoinForms.py Sat Mar 02 01:48:08 2013 +0100
1.2 +++ b/MoinForms.py Sun Mar 10 01:17:39 2013 +0100
1.3 @@ -780,31 +780,6 @@
1.4
1.5 return result
1.6
1.7 -def parseMacroArguments(args):
1.8 -
1.9 - """
1.10 - Interpret the arguments. To support commas in labels, the label argument
1.11 - should be quoted. For example:
1.12 -
1.13 - "label=No, thanks!"
1.14 - """
1.15 -
1.16 - try:
1.17 - parsed_args = args and wikiutil.parse_quoted_separated(args, name_value=False) or []
1.18 - except AttributeError:
1.19 - parsed_args = args.split(",")
1.20 -
1.21 - pairs = []
1.22 - for arg in parsed_args:
1.23 - if arg:
1.24 - pair = arg.split("=", 1)
1.25 - if len(pair) < 2:
1.26 - pairs.append((None, arg))
1.27 - else:
1.28 - pairs.append(tuple(pair))
1.29 -
1.30 - return pairs
1.31 -
1.32 def quoteMacroArguments(args):
1.33
1.34 """