def updateprofile(request):
    oauth_req = OAuthRequest.from_request(request.method, request.build_absolute_uri(), headers=request.META, parameters=request.POST.copy())
    return HttpResponse("update profile", mimetype="text/plain")
    if not oauth_req:
        return HttpResponse("Not a OAuthRequest", mimetype="text/plain")
    else:
        oauth_server = OAuthServer(data_store=DataStore(oauth_req), signature_methods=signature_methods)
        oauth_server.verify_request(oauth_req)
        # TOOD Refactor this into something like omb.update_profile
        omb_version = oauth_req.get_parameter('omb_version')
        if omb_version != OMB_VERSION_01:
            return HttpResponse("Unsupported OMB version", mimetype="text/plain")
        omb_listenee = oauth_req.get_parameter('omb_listenee')
        try:
            remote_profile = RemoteProfile.objects.get(uri=omb_listenee)
            omb_listenee_profile = _get_oauth_param(oauth_req, 'omb_listenee_profile')
            if omb_listenee_profile != None:
                remote_profile.url = omb_listenee_profile
            omb_listenee_nickname = _get_oauth_param(oauth_req, 'omb_listenee_nickname')
            if omb_listenee_nickname != None:
                remote_profile.username = omb_listenee_nickname
            omb_listenee_license = _get_oauth_param(oauth_req, 'omb_listenee_license')
            if omb_listenee_license != None:
                remote_profile.license = omb_listenee_license
            omb_listenee_fullname = _get_oauth_param(oauth_req, 'omb_listenee_fullname')
            if omb_listenee_fullname != None:
                remote_profile.fullname = omb_listenee_fullname
            omb_listenee_homepage = _get_oauth_param(oauth_req, 'omb_listenee_homepage')
            if omb_listenee_homepage != None:
                remote_profile.homepage = omb_listenee_homepage
            omb_listenee_bio = _get_oauth_param(oauth_req, 'omb_listenee_bio')
            if omb_listenee_bio != None:
                remote_profile.bio = omb_listenee_bio
            omb_listenee_location = _get_oauth_param(oauth_req, 'omb_listenee_location')
            if omb_listenee_location != None:
                remote_profile.location = omb_listenee_location
            omb_listenee_avatar = _get_oauth_param(oauth_req, 'omb_listenee_avatar')
            if omb_listenee_avatar != None:
                remote_profile.avatar = omb_listenee_avatar
            
            remote_profile.save()
            return HttpResponse("omb_version=%s" % OMB_VERSION_01, mimetype="text/plain")
        except __HOLE__:
            return HttpResponse("Profile unknown", mimetype="text/plain")
dataset/ETHPy150Open skabber/django-omb/omb/views.py/updateprofile