From 989c1693f70f63f19056fd14700801ce2ba9608c Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 5 Dec 2020 11:06:50 +1100 Subject: [PATCH] changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now & notes/blurb save too --- status.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 status.py diff --git a/status.py b/status.py new file mode 100644 index 0000000..8a9f6f3 --- /dev/null +++ b/status.py @@ -0,0 +1,25 @@ +### shared variables to show state of save/delete when we redirect to 'show all' view +class Status: + alert="success" + message="" + + def GetAlert(self): + return self.alert + + def SetAlert(self, al): + self.alert=al + return + + def GetMessage(self): + return self.message + + def SetMessage(self, msg): + self.message=msg + return + + def ClearMessage(self): + self.alert="success" + self.message="" + return "" + +st=Status()