Exemplo n.º 1
0
 def _get(cls, user):
     expand_rels = request.args.get('expand')
     if expand_rels:
         expand_rels = filter(lambda o: o.lower().strip(),
                              expand_rels.split(','))
         user.force_serialize(expand_rels)
     resp = user.serialized
     resp['token'] = get_request_token()
     return jsonify(resp)
Exemplo n.º 2
0
def get_logged_user():
    """
    Gets the currently logged user.
    """
    return User.load_current_user(get_request_token())