def get_product_target_mappings_for_targets(self, targets):
    """Gets the product-target associations for the given targets, preserving the input order.

    :API: public

    :param targets: The targets to lookup products for.
    :returns: The ordered (product, target) tuples.
    """
    product_target_mappings = []
    for target in targets:
      for product in self._products_by_target[target]:
        product_target_mappings.append((product, target))

    return product_target_mappings
Gets the product-target associations for the given targets, preserving the input order.

    :API: public

    :param targets: The targets to lookup products for.
    :returns: The ordered (product, target) tuples.