'Save session data'

def commitData(self, session_mgr):

    if (self.view is None):
        return
    sid = session_mgr.sessionId()
    skey = session_mgr.sessionKey()
    session_id = (u'%s_%s' % (sid, skey))
    session = Session(session_id, repo=core.getcwd())
    self.view.save_state(settings=session)
