#NEWLINE# @ token . setter #NEWLINE# def token( self , new_token ) : #NEWLINE# #INDENT# if ( new_token is None ) : #NEWLINE# #INDENT# self . oauth_token = None #NEWLINE# self . oauth . client . resource_owner_key = None #NEWLINE# self . oauth . client . resource_owner_secret = None #NEWLINE# self . oauth . client . verifier = None #NEWLINE# self . requested_permissions = None #NEWLINE# return #NEWLINE# #UNINDENT# assert isinstance ( new_token , FlickrAccessToken ) , new_token #NEWLINE# self . oauth_token = new_token #NEWLINE# self . oauth . client . resource_owner_key = new_token . token #NEWLINE# self . oauth . client . resource_owner_secret = new_token . token_secret #NEWLINE# self . oauth . client . verifier = None #NEWLINE# self . requested_permissions = new_token . access_level