Function
zope.documenttemplate.dt_util.parse_params

Signature

parse_params(text, result=None, tag='', unparmre=<_sre.SRE_Pattern object at 0x41818020>, qunparmre=<_sre.SRE_Pattern object at 0x417bcdb8>, parmre=<_sre.SRE_Pattern object at 0x41780608>, qparmre=<_sre.SRE_Pattern object at 0x417f23b8>, **parms)

Documentation String

Parse tag parameters

The format of tag parameters consists of 1 or more parameter specifications separated by whitespace. Each specification consists of an unnamed and unquoted value, a valueless name, or a name-value pair. A name-value pair consists of a name and a quoted or unquoted value separated by an =.

The input parameter, text, gives the text to be parsed. The keyword parameters give valid parameter names and default values.

If a specification is not a name-value pair and it is not the first specification and it is a valid parameter name, then it is treated as a name-value pair with a value as given in the keyword argument. Otherwise, if it is not a name-value pair, it is treated as an unnamed value.

The data are parsed into a dictionary mapping names to values. Unnamed values are mapped from the name "". Only one value may be given for a name and there may be only one unnamed value.