def _parse_state_value(state, user):
 (uri, token) = state.rsplit(':', 1)
 if xsrfutil.validate_token(xsrf_secret_key(), token, user.user_id(), action_id=uri):
  return uri
 else:
  return None

def _parse_state_value ( state , user ) : ( uri , token ) = state . rsplit ( ':' , 1 ) if xsrfutil . validate_token ( xsrf_secret_key ( ) , token , user . user_id ( ) , action_id = uri ) : return uri else : return None
parse the value of the state parameter .