Bug 9096 - Need a callback for settings web handler to be called after saving, but before rendering the page.
: Need a callback for settings web handler to be called after saving, but befor...
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: unspecified
: Macintosh All
: P3 normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-11 00:59 UTC by Michael Herger
Modified: 2008-08-11 01:15 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Herger 2008-08-11 00:59:36 UTC
Some of our settings page handler use local handling because they have to do some processing _after_ the preferences have been stored, but before the page is rendered. Or they return slightly unexpected pages, because the some parameter wasn't set in the global handler. Eg. changing the audiodir will not disable the rescan button, though a scan is launched. This is due to the fact that the stillScanning() call is done in Basic.pm before the pref is stored in Settings.pm

Adding a beforeRender() callback or something would allow for improved handling of these cases without the need to have the prefs process.
Comment 1 Michael Herger 2008-08-11 01:15:06 UTC
This is already possible by overwriting handler correctly...