def _build_state_value(request_handler, user):
 uri = request_handler.request.url
 token = xsrfutil.generate_token(xsrf_secret_key(), user.user_id(), action_id=str(uri))
 return ((uri + ':') + token)

def _build_state_value ( request_handler , user ) : uri = request_handler . request . url token = xsrfutil . generate_token ( xsrf_secret_key ( ) , user . user_id ( ) , action_id = str ( uri ) ) return ( ( uri + ':' ) + token )
composes the value for the state parameter .