# HG changeset patch # User Paul Boddie # Date 1357948310 -3600 # Node ID f83b49f1603e243f5971f2dddf0467ce2d851483 # Parent 12780db25d84e3b093918d2fe2b3789ada3a72fb Added guidance on macro argument quoting. Added a package metadata file and updated the copyright details. diff -r 12780db25d84 -r f83b49f1603e MoinForms.py --- a/MoinForms.py Fri Jan 04 17:56:30 2013 +0100 +++ b/MoinForms.py Sat Jan 12 00:51:50 2013 +0100 @@ -2,7 +2,7 @@ """ MoinMoin - MoinForms library - @copyright: 2012 by Paul Boddie + @copyright: 2012, 2013 by Paul Boddie @license: GNU GPL (v2 or later), see COPYING.txt for details. """ @@ -502,9 +502,10 @@ def parseMacroArguments(args): """ - Interpret the arguments. - NOTE: The argument parsing should really be more powerful in order to - NOTE: support labels. + Interpret the arguments. To support commas in labels, the label argument + should be quoted. For example: + + "label=No, thanks!" """ try: diff -r 12780db25d84 -r f83b49f1603e PKG-INFO --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PKG-INFO Sat Jan 12 00:51:50 2013 +0100 @@ -0,0 +1,21 @@ +Metadata-Version: 1.1 +Name: MoinForms +Version: 0.1 +Author: Paul Boddie +Author-email: paul at boddie org uk +Maintainer: Paul Boddie +Maintainer-email: paul at boddie org uk +Home-page: http://moinmo.in/ParserMarket/MoinForms +Download-url: http://moinmo.in/ParserMarket/MoinForms?action=AttachFile&do=view&target=MoinForms-0.1.tar.bz2 +Summary: Permit the definition of flexible Web forms in Wiki pages +License: GPL (version 2 or later) +Description: The MoinForms extension for MoinMoin provides a way of defining Web + forms in Wiki pages that support elementary and extensible validation, + replicated form sections, and a framework for handling submitted forms. +Keywords: MoinMoin Wiki forms +Requires: MoinMoin MoinSupport +Classifier: Development Status :: 3 - Alpha +Classifier: License :: OSI Approved :: GNU General Public License (GPL) +Classifier: Programming Language :: Python +Classifier: Topic :: Internet :: WWW/HTTP +Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content diff -r 12780db25d84 -r f83b49f1603e docs/COPYING.txt --- a/docs/COPYING.txt Fri Jan 04 17:56:30 2013 +0100 +++ b/docs/COPYING.txt Sat Jan 12 00:51:50 2013 +0100 @@ -1,7 +1,7 @@ Licence Agreement ----------------- -Copyright (C) 2012 Paul Boddie +Copyright (C) 2012, 2013 Paul Boddie This software is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as diff -r 12780db25d84 -r f83b49f1603e pages/HelpOnMoinForms --- a/pages/HelpOnMoinForms Fri Jan 04 17:56:30 2013 +0100 +++ b/pages/HelpOnMoinForms Sat Jan 12 00:51:50 2013 +0100 @@ -43,6 +43,12 @@ }}} +To define labels that contain commas or brackets, quote them as follows: + +{{{ +<> +}}} + === Defining Form Regions === {{{{