24 from .immutable_preset_info_handler
import ImmutablePresetInfoHandler
29 ImmutablePresetInfoHandler.__init__(self, file_name)
32 group = self.presets_.CreateGroup(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
34 self.handle_.Export(self.file_name_)
37 group_list = self.presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
39 for group
in group_list:
40 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
41 groupname = group.GetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME)
46 if group_to_del !=
None:
47 self.presets_.Remove(group_to_del)
48 self.handle_.Export(self.file_name_)
51 group_list = self.presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
52 for group
in group_list:
53 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
54 groupname = group.GetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME)
56 group.SetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME, new)
57 self.handle_.Export(self.file_name_)