@classmethod
  def Log(cls, products, action):
    # Support products being a single product entity.
    if not isinstance(products, (list, tuple)):
      products = (products,)

    to_put = []
    for p in products:
      log = cls(product_id=p.product_id, action=action, tracks=p.tracks)
      log.mtime = datetime.datetime.utcnow()
      to_put.append(log)
    # Put all log entities together.
    gae_util.BatchDatastoreOp(db.put, to_put)
Puts batches of product changes to AdminAppleSUSProductLog.
dataset/ETHPy150Open google/simian/src/simian/mac/models/base.py/AdminAppleSUSProductLog.Log