Exemplo n.º 1
0
    def selectmpl(self):
        ''' Global selection of the MPL/DR versions '''
        args = av.manual_parse(self, request, use_params='index')
        version = args.get('release', None)
        set_session_versions(version)
        drpver, dapver = config.lookUpVersions(release=version)
        out = {
            'status': 1,
            'msg': 'Success',
            'current_release': version,
            'current_drpver': drpver,
            'current_dapver': dapver
        }

        return jsonify(result=out)
Exemplo n.º 2
0
    def logout(self):
        ''' logout from the system
        '''

        result = {'logout': 'success'}

        if 'loginready' in current_session:
            ready = current_session.pop('loginready')

        if 'name' in current_session:
            name = current_session.pop('name')

        request.environ['REMOTE_USER'] = None
        config.access = 'public'
        set_session_versions(config.release)
        setGlobalSession()
        logout_user()

        return redirect(url_for('index_page.Marvin:index'))