I have a function that handles a banner messaging system that exists in both the Vision and Perspective version of our application. I am trying to merge their shared set of scripts into one script module.
Then function writes the banner message to the database, and then 1) toggles a client tag to refresh the query or 2) toggled a session custom property that’s used in the named query to do the same in perspective. But now I am trying to merge these together into one function that is called after the database write completes.
I have this working for vision but don’t know what I can put in perspective to make it work
def refreshMessages(): from env import isPerspective, isVision if isPerspective(): #???? elif isVision(): # This tells the table to refresh(vision) import system.tag if system.tag.read('[client]refreshMessages'): system.tag.write('[client]refreshMessages', 0) else: system.tag.write('[client]refreshMessages', 1)
Is there a way to read/write directly to a session property analogous to system.tag?