(self, name)
return TokenData(name=token.name,
                         version=token.version,
                         owner=token.owner,
                         expiration_time=token.expirationTime,
                         priority=token.priority,
                         data=token.data)
Get token data from the store.

        Args:
            path: The name of the token to retrieve.
        Returns:
            The token or None if it was not found.
Get token data from the store.
Get token data from the store .
def get_token(self, name):
        """Get token data from the store.

        Args:
            path: The name of the token to retrieve.
        Returns:
            The token or None if it was not found.
        """
        tokens = self._store.read_tokens(name)
        token = None
        for token in tokens:
            if token.name == name:
                break
        if not token or token.name != name:
            raise PinballException("didn't find any tokens with name %s" %
                                   name)
        return TokenData(name=token.name,
                         version=token.version,
                         owner=token.owner,
                         expiration_time=token.expirationTime,
                         priority=token.priority,
                         data=token.data)
def get_token ( self , name ) : tokens = self . _store . read_tokens ( name ) token = None for token in tokens : if token . name == name : break if not token or token . name != name : raise PinballException ( "didn't find any tokens with name %s" % name ) return TokenData ( name = token . name , version = token . version , owner = token . owner , expiration_time = token . expirationTime , priority = token . priority , data = token . data )