OrsSessionManager

Plugin to manage the creation and the saving of sessions

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4
copyright:Object Research Systems (ORS), Inc. All rights reserved.
date:July 2017
dragonflyVersion:
 3.1.0.286 (D)
UUID:334d0352761a11e7a9cd448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsSessionManager.OrsSessionManager.OrsSessionManager(varName=None, managed=True)
closable = False
classmethod getAbout()
classmethod getHasUnsavedData()
classmethod getSessionHasData()

Checks to see if session current has data (thus does it require a New Session?) :return: True if live data exists, False otherwise. :rtype: bool

getState()
classmethod import_only_from_file(filename='', legacy=False)
keepAlive = False
classmethod loadSession()
classmethod loadSessionAction()
classmethod loadSessionInteractive(fname=None, disablePopup=False)
multiple = False
classmethod newSession()
classmethod newSessionAction()
classmethod recentFilesForSessionsTemp()
savable = True
classmethod saveSession()
classmethod saveSessionAction()
classmethod saveSessionAs()
classmethod saveSessionInteractive(askUserForFile=True)

Starts the process of saving a session, and interacts with the user

Parameters:askUserForFile – True to ask the user where to save (Save As), False to just save to current file (will act as Save As if no current file)
classmethod saveSessionToFile(fileName)
classmethod startNewSessionInteractive()

Starts a new session, but if no objects live in the current session then just bypass :return: None