Add a settings page
Closed this issue · 3 comments
ismail-s commented
Need to be able to change blog title, theme.
- Create db wrapper that presents settings db table as dict
- Create mapping listing all settings that can be changed
- Add more options to mapping to specify min/max directly there
- Create route and view for displaying settings page
- Create template for settings page
- Handle submission of changed settings
- Upon startup, make sure all settings exist, requesting from command line any that don't
- Change settings usage in rest of web app to use settings dict
- Make sure both templates work
- Remove unnecessary settings in ini files
- Make sure all settings we want in settings webpage are in settings webpage
- Add fireblog.recaptcha-secret setting
- Add fireblog.theme setting
- Add Persona settings
- Remove any redundant code
- Tests...
ismail-s commented
So far, I've added a settings class thing which abstracts the db away, presenting a dict interface. The class also has caching.
ismail-s commented
The main thing remaining now is to update the tests, and add tests for the settings page.
ismail-s commented
Existing tests have been fixed, just need to add new tests and remove redundant code.