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
This commit is contained in:
25
status.py
Normal file
25
status.py
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user