Pass extension pages to all extensions' "project settings" pages.

This commit is contained in:
2017-05-31 10:33:24 +02:00
parent f953f1e51b
commit 2c78697e80
3 changed files with 22 additions and 9 deletions

View File

@@ -108,10 +108,12 @@ class PillarExtension(object, metaclass=abc.ABCMeta):
return ''
def project_settings(self, project: pillarsdk.Project) -> flask.Response:
def project_settings(self, project: pillarsdk.Project, **template_args: dict) -> flask.Response:
"""Renders the project settings page for this extension.
Set YourExtension.has_project_settings = True and Pillar will call this function.
:param project: the project for which to render the settings.
:param template_args: additional template arguments.
:returns: a Flask HTTP response
"""