Example #1
0
def _sessions():
    sessions = session_manager.list_sessions()
    return Response(json_encode({
        'ret': 0,
        'response': sessions
    }),
                    mimetype="application/json")
Example #2
0
def _sessions():
    sessions = session_manager.list_sessions()
    response = []
    for session in sessions:
        response.append('%s/%s/%s' % (session.sid,
            session.session_context.client_id, session.session_context.user))
    return Response(json_encode({'ret': 0, 'response': response}),
                    mimetype="application/json")
Example #3
0
def _sessions():
    sessions = session_manager.list_sessions()
    return Response(json_encode({'ret': 0, 'response': sessions}),
                    mimetype="application/json")