I ran into the problem that I wanted to reuse much of the code in
lib/TWiki/Form.pm
but wanted to base the form on some text rather than something pulled from a topic (more specifically, I wanted to initialize the form with the syntax of
EditTablePlugin).
In order to do so (without copying most of the code in
TWiki::Form::new
, I needed a way of passing the field definitions into the creator function.
The attached patch to
lib/TWiki/Form.pm
accomplishes this, without impacting the rest of the system. Could update the core code by this?
Before I update I shall let this stew for a while...
Looks reasonable. It's a minor refactoring, after all.
CC
Adding POD update. --
TW
4.1.0 released
KJL