def GetUserSettings(self, request):
    try:
      user_record = aff4.FACTORY.Open(
          aff4.ROOT_URN.Add("users").Add(request.user), "GRRUser",
          token=request.token)

      return user_record.Get(user_record.Schema.GUI_SETTINGS)
    except __HOLE__:
      return aff4.GRRUser.SchemaCls.GUI_SETTINGS()
dataset/ETHPy150Open google/grr/grr/gui/plugins/notifications.py/UserSettingsDialog.GetUserSettings