/-/plugins now shows details of hooks, closes #794

Also added /-/plugins?all=1 parameter to see default plugins.
This commit is contained in:
Simon Willison 2020-06-02 14:49:28 -07:00
commit a7137dfe06
4 changed files with 64 additions and 12 deletions

View file

@ -49,6 +49,7 @@ def get_plugins():
"name": plugin.__name__,
"static_path": static_path,
"templates_path": templates_path,
"hooks": [h.name for h in pm.get_hookcallers(plugin)],
}
distinfo = plugin_to_distinfo.get(plugin)
if distinfo: