28 PRESETS_GROUP_NAME =
"Presets"
29 PRESET_GROUP_NAME =
"Preset"
30 NAME_ATTRIBUTE_NAME =
"Name"
36 self.
root_ = self.handle_.Root()
38 self.
presets_ = self.root_.RetrieveGroup(ImmutablePresetInfoHandler.PRESETS_GROUP_NAME)
42 group_list = self.presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
43 for group
in group_list:
44 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
45 groupname = group.GetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME)
47 preset = Preset.FromInfo(group)
52 group_list = self.presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
55 for group
in group_list:
56 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
57 preset = Preset.FromInfo(group)
string NAME_ATTRIBUTE_NAME