@classmethod
  def GetAttributeByName(cls, name):
    # Support attribute names with a . in them:
    try:
      if "." in name:
        name, field = name.split(".", 1)
        return cls.NAMES[name][field]

      return cls.NAMES[name]
    except __HOLE__:
      raise AttributeError("Invalid attribute %s" % name)
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/Attribute.GetAttributeByName