original_docstring: 
      Get all attributes defined for an account.
  
      :param account: the account name to list the scopes of.
      :param session: The database session in use.
  
      :returns: a list of all key, value pairs for this account.
      
docstring: Get all attributes defined for an account.
docstring_tokens: Get all attributes defined for an account .
code: def list_account_attributes(account, session=None):
      """
      Get all attributes defined for an account.
  
      :param account: the account name to list the scopes of.
      :param session: The database session in use.
  
      :returns: a list of all key, value pairs for this account.
      """
      attr_list = []
      query = session.query(models.Account).filter_by(account=account).filter_by(status=AccountStatus.ACTIVE)
      try:
          query.one()
      except exc.NoResultFound:
          raise exception.AccountNotFound("Account ID '{0}' does not exist".format(account))
  
      query = session.query(models.AccountAttrAssociation).filter_by(account=account)
      for attr in query:
          attr_list.append({'key': attr.key, 'value': attr.value})
  
      return attr_list
code_tokens: def list_account_attributes ( account , session = None ) : attr_list = [ ] query = session . query ( models . Account ) . filter_by ( account = account ) . filter_by ( status = AccountStatus . ACTIVE ) try : query . one ( ) except exc . NoResultFound : raise exception . AccountNotFound ( "Account ID '{0}' does not exist" . format ( account ) ) query = session . query ( models . AccountAttrAssociation ) . filter_by ( account = account ) for attr in query : attr_list . append ( { 'key' : attr . key , 'value' : attr . value } ) return attr_list
short_docstring: Get all attributes defined for an account.
short_docstring_tokens: Get all attributes defined for an account .
comment: """
      Get all attributes defined for an account.
  
      :param account: the account name to list the scopes of.
      :param session: The database session in use.
  
      :returns: a list of all key, value pairs for this account.
      """