Roy M. Silvernail
2003-12-03, 17:35
It occurs to me that we could use a configuration interface for plugins, so
the non-techie audience doesn't have to edit plugin modules directly. Here's
what I envision:
Configurable plugins have a 'Configure' button after the plugin name on the
Plugin Setup page of the web interface, which brings up the config form in
that same frame.
An optional config mode to set a (probably reduced) group of configuration
items from the output unit via the remote.
A 'Plugin-Name-Param' namespace is defined in the slimserver.pref file so the
config parameters can be stored centrally.
A getConfig() method on the plugin returns a %hashref of 'Param = Value'
pairs, with Value holding initial defaults or previously set values for web
display.
A setConfig(Param, value) method on the plugin validates and updates a
parameter.
I'd contribute a patch, but I'm just now spelunking the server's web interface
and don't know my way around in there yet. Be happy to take some guidance
off-list and help bring this together, though.
the non-techie audience doesn't have to edit plugin modules directly. Here's
what I envision:
Configurable plugins have a 'Configure' button after the plugin name on the
Plugin Setup page of the web interface, which brings up the config form in
that same frame.
An optional config mode to set a (probably reduced) group of configuration
items from the output unit via the remote.
A 'Plugin-Name-Param' namespace is defined in the slimserver.pref file so the
config parameters can be stored centrally.
A getConfig() method on the plugin returns a %hashref of 'Param = Value'
pairs, with Value holding initial defaults or previously set values for web
display.
A setConfig(Param, value) method on the plugin validates and updates a
parameter.
I'd contribute a patch, but I'm just now spelunking the server's web interface
and don't know my way around in there yet. Be happy to take some guidance
off-list and help bring this together, though.