24 from PyQt4
import QtCore, QtGui
26 from file_loader
import GenericLoader
29 LOADERS_GROUP_NAME =
"GenericLoaders"
30 LOADER_GROUP_NAME =
"GenericLoader"
31 NAME_ATTRIBUTE_NAME =
"Name"
37 self.
root_ = self.handle_.Root()
39 self.
loaders_ = self.root_.RetrieveGroup(ImmutableLoaderInfoHandler.LOADERS_GROUP_NAME)
43 group_list = self.loaders_.GetGroups(ImmutableLoaderInfoHandler.LOADER_GROUP_NAME)
44 for group
in group_list:
45 if group.HasAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME):
46 groupname = group.GetAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME)
48 loader = GenericLoader.FromInfo(group)
53 group_list = self.loaders_.GetGroups(ImmutableLoaderInfoHandler.LOADER_GROUP_NAME)
56 for group
in group_list:
57 if group.HasAttribute(ImmutableLoaderInfoHandler.NAME_ATTRIBUTE_NAME):
58 loader = GenericLoader.FromInfo(group)