def save ( self ) : if self . path : self . _saveState ( self . path ) else : self . saveAs ( )
python, model saved in session
save the current session override if session was saved earlier
def save(self):
        """save the current session
        override, if session was saved earlier"""
        if self.path:
            self._saveState(self.path)
        else:
            self.saveAs()