Stanislav Sinyagin
2010-09-13 08:28:18 UTC
hi,
alongside with $action->argument_value(), it will be cool to have a method for
retrieving a display value for the argument. For example, a Select argument
definition may contain some internal identifiers as Values, and some
human-readable strings for Display. In the view template, I would rather use the
Display values for printing.
Furthermore, it will be cool to add arbitrary attributes for the available
values, and a method of retrieving them.
Example:
param report =>
type is 'Select',
label is 'Execute report',
available are
[ {
value => 'compare_network_with_ipam',
display => 'Compare Network data with IP Address Management',
page_title => 'Report results: Network vs. IPAM Comparison',
intro_text => 'This report reflects the difference between
productive network and IP Address Management data. Network data is imported
every morning at 7:00am, and the IPAM data is real-time.'
},
....
cheers,
stan
alongside with $action->argument_value(), it will be cool to have a method for
retrieving a display value for the argument. For example, a Select argument
definition may contain some internal identifiers as Values, and some
human-readable strings for Display. In the view template, I would rather use the
Display values for printing.
Furthermore, it will be cool to add arbitrary attributes for the available
values, and a method of retrieving them.
Example:
param report =>
type is 'Select',
label is 'Execute report',
available are
[ {
value => 'compare_network_with_ipam',
display => 'Compare Network data with IP Address Management',
page_title => 'Report results: Network vs. IPAM Comparison',
intro_text => 'This report reflects the difference between
productive network and IP Address Management data. Network data is imported
every morning at 7:00am, and the IPAM data is real-time.'
},
....
cheers,
stan