Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugin blueprint registration (#171)
Plugin versions should now be defined on the module level, and plugins may contain multiple blueprints. * Let the root view ('/') be configurable by account role(s). * enable more control over menu through FLEXMEASURES_LISTED_VIEWS, refactor * add changelog entry * mention the FM version this requires in the docs * Fix bug for Flask AnonymousUser not having an account associated with it. (#167) * Allow a plugin to define multiple Blueprints and relax naming assumption (#164) This gives more flexibility in naming the plugin, and less worrying about consistently naming plugins and blueprints in different places (thereby facilitating renaming plugins). The possibility of defining multiple Blueprints in a plugin is more of a perk, but I can imagine it comes in handy if you want to register separate Blueprints for your UI and API, for example, with a different url_prefix. * a few smaller corrections from code review * support adding and deleting of roles * use a better name for the function dealing with these config entries, and use it throughout * Swap lines so that the default root_view can be set in time (#165) * also make FLEXMEASURES_PLATFORM_NAME flexible w.r.t. to account roles * Customize view titles and icons (#166) * Allow to set view icons and titles as a config setting * Add config defaults * Allow Font Awesome icons to be used in the documentation * Add documentation for the two new config settings Co-authored-by: Nicolas Höning <iam@nicolashoening.de> * add MENU to menu-related config setting names * separate the application of updates to the menu config, so we apply everything, not just to menu entries not in the original list * Revert "Allow a plugin to define multiple Blueprints and relax naming assumption (#164)" This reverts commit 5bc278f. * Typographical edits * Corrections in documentation of root view setting * Derive plugin version from module rather than from blueprint * Allow a plugin to define multiple Blueprints and relax naming assumption (#164) This gives more flexibility in naming the plugin, and less worrying about consistently naming plugins and blueprints in different places (thereby facilitating renaming plugins). The possibility of defining multiple Blueprints in a plugin is more of a perk, but I can imagine it comes in handy if you want to register separate Blueprints for your UI and API, for example, with a different url_prefix. From PR#164. * Changelog entry * More nicely formatted list of plugins * Add changelog warning Co-authored-by: Nicolas Höning <nicolas@seita.nl> Co-authored-by: Nicolas Höning <iam@nicolashoening.de>
- Loading branch information