100
87
Registry.register(self, key, (module_name, member_name))
103
90
"""Load the module and return the object specified by the given key.
105
92
May raise ImportError if there are any problems, or AttributeError if
106
93
the module does not have the supplied member.
108
module_name, member_name = Registry.get(self, key, default_key)
109
96
module = __import__(module_name, globals(), locals(), [member_name])
111
98
return getattr(module, member_name)