'This method store an action object in the session object and returns an integer
identifying that action. The method get_session_action() can be used to get
back the action.
:param the_action: The action to save in the session.
:type the_action: anything
:return: A key identifying the saved action.
:rtype: integer'

@http.route('/web/session/save_session_action', type='json', auth='user')
def save_session_action(self, the_action):

    return request.session.save_action(the_action)
