28 PRESETS_GROUP_NAME =
"Presets"
29 PRESET_GROUP_NAME =
"Preset"
30 NAME_ATTRIBUTE_NAME =
"Name"
38 self.
presets_presets_ = self.
root_root_.RetrieveGroup(ImmutablePresetInfoHandler.PRESETS_GROUP_NAME)
42 group_list = self.
presets_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_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)
def __init__(self, file_name)
def GetPreset(self, name)
string NAME_ATTRIBUTE_NAME