(self, token_name)
resets a token
resets a token
resets a token
def create_new_token(self, token_name):
        """resets a token"""

        if token_name not in TOKEN_NAMES:
            raise TokenException("Invalid token name %s" % token_name)

        setattr(self, token_name, random_token())
def create_new_token ( self , token_name ) : if token_name not in TOKEN_NAMES : raise TokenException ( "Invalid token name %s" % token_name ) setattr ( self , token_name , random_token ( ) )