From 87586f73fc5741070466d189dfab807a190753e5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 31 Mar 2021 19:41:58 +0200 Subject: add potential to generate custom headers and custom pages --- cli/app/controllers/graph_controller.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/app/controllers/graph_controller.py') 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) -- cgit v1.2.3-70-g09d2