Add "hook" as a synonym for "txn".
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
1f031fad16
commit
21e1d69117
2 changed files with 3 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ Column directives indicate how many columns to use to display fields. A column
|
||||||
directive consists of a record with the values `col` and an integer number of
|
directive consists of a record with the values `col` and an integer number of
|
||||||
columns.
|
columns.
|
||||||
|
|
||||||
==== Hook Directives (`txn`)
|
==== Hook Directives (`txn` and `hook`)
|
||||||
|
|
||||||
Hook directives indicate a series of hooks to be run on each load or save
|
Hook directives indicate a series of hooks to be run on each load or save
|
||||||
operation. Several different hooks are available. The default set of hooks is
|
operation. Several different hooks are available. The default set of hooks is
|
||||||
|
|
@ -127,7 +127,7 @@ allows a user to keep a history of the data and to easily back it up to another
|
||||||
location.
|
location.
|
||||||
|
|
||||||
A hook directive consists of a record starting with the value `txn`, and
|
A hook directive consists of a record starting with the value `txn`, and
|
||||||
followed by a list of hook names.
|
followed by a list of hook names. `hook` may be used as a synonym for `txn`.
|
||||||
|
|
||||||
=== Configuration File
|
=== Configuration File
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -376,7 +376,7 @@ class Schema:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise newfol.exception.SchemaError("has invalid " +
|
raise newfol.exception.SchemaError("has invalid " +
|
||||||
"number of columns")
|
"number of columns")
|
||||||
elif rectype in ['txn', 'transaction']:
|
elif rectype in ['txn', 'transaction', 'hook']:
|
||||||
self._txntype = i.fields[1:]
|
self._txntype = i.fields[1:]
|
||||||
elif rectype in ['dpy', 'display']:
|
elif rectype in ['dpy', 'display']:
|
||||||
self._layout = list(map(fix_up_layout, i.fields[1:]))
|
self._layout = list(map(fix_up_layout, i.fields[1:]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue