Skip to content

Commit

Permalink
Item14263: Correct a typo in configure
Browse files Browse the repository at this point in the history
It was inconsequential, but made the code confusing.  Thanks to CDot for
further documentation.
  • Loading branch information
gac410 committed Jan 16, 2017
1 parent 6e1c5cd commit 7749e08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Item.pm
Expand Up @@ -190,7 +190,7 @@ sub _parseOptions {
&& !$Foswiki::Configure::LoadSpec::RAW_VALS )
{
my $fn = $spec->{handler};
$this->{key} = $this->$fn( $val, $key );
$this->$fn( $val, $key ); # Process with delegate
}
else {
$this->{$key} = $val;
Expand Down
29 changes: 12 additions & 17 deletions core/lib/Foswiki/Configure/Value.pm
Expand Up @@ -13,39 +13,34 @@ item. This object is the *model* only.
---++ Value Attributes
Values may have attributes associated with them in the .spec file. These
attributes are identified by UPPERCASE names and may be one of four types:
attributes are identified by UPPERCASE names and may be either:
* boolean - a single name enables the option.
* boolean - a single name enables the option, for example EXPERT
* string - a name followed by an equals sign, followed by a quoted string
(single or double quotes both supported)
* keyword - a name followed by a keyword
(single or double quotes both supported) for example LABEL="Wibble".
(see also &&& below)
The special prefix 'NO' on any attribute name will clear the value of
that attributes.
In support of older .spec files, the following are also supported (though
&&& In support of older .spec files, the following are also supported (though
their usage is deprecated):
* Single-character attribute H. This is synonymous with HIDDEN.
* Single-character attribute M is ignored.
* Unquoted conditions - DISPLAY_IF and ENABLE_IF may be followed by a
* Unquoted attribute values - DISPLAY_IF and ENABLE_IF may be followed by a
a space, and terminated by /DISPLAY_IF (or /ENABLE_IF) or the end of
the string.
Formally,
Certain attributes define a 'delegate' that allows further parsing of the
value of an attribute. A delegate is a ref to a function that performs
this parsing. Delegates are responsible for directly modifying the item
on which they are run.
attrs ::= attr attrs ;
attr ::= name '=' values | name ;
values ::= value | values ';' fattr ;
value ::= quoted-string | name ;
name is made up of [-A-Z0-9]
Certain attributes define a 'process' that allows further parsing of the
value of an attribute. A process is a ref to a function that performs
this parsing. Execution of processes may be supressed by setting
Execution of delegates may be supressed by setting
$Foswiki::Configure::LoadSpec::RAW_VALS to 1.
Processes are used to parse 'FEEDBACK' and 'CHECK' values.
Delegates are used to parse 'FEEDBACK' and 'CHECK' values.
=cut

Expand Down

0 comments on commit 7749e08

Please sign in to comment.