diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-31 19:41:58 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-31 19:41:58 +0200 |
| commit | 87586f73fc5741070466d189dfab807a190753e5 (patch) | |
| tree | 33fefbcb3478c8eb35896b7c08cde27c2ca0b1c9 /cli/app/controllers/graph_controller.py | |
| parent | cda9c115283be8e4e224f6036ba07e5eca243289 (diff) | |
add potential to generate custom headers and custom pages
Diffstat (limited to 'cli/app/controllers/graph_controller.py')
| -rw-r--r-- | cli/app/controllers/graph_controller.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/app/controllers/graph_controller.py b/cli/app/controllers/graph_controller.py index fcca50a..9169818 100644 --- a/cli/app/controllers/graph_controller.py +++ b/cli/app/controllers/graph_controller.py @@ -13,6 +13,12 @@ class GraphView(CrudView): model = Graph form = GraphForm + def on_create(self, session, form, item): + item.settings = form['settings'] + + def on_update(self, session, form, item): + item.settings = form['settings'] + def on_destroy(self, session, item): for item in item.pages: session.query(Tile).filter(Tile.page_id == item.id).delete(synchronize_session=False) |
