def _GetItemTimestamp(getter):
  def fn(_, item):
    """Returns a timestamp of item.

    """
    timestamp = getter(item)
    if timestamp is None:
      # Old configs might not have all timestamps
      return _FS_UNAVAIL
    else:
      return timestamp

  return fn
Translate new DBVistrailVariable based vistrail variables to old
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetItemTimestamp--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v1_0_3/translate/v1_0_4.py/translateVistrail