#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
"""
Initialize the linked image module. Consumers of linked image functionality
should never import anything other than pkg".client.linkedimage". Here we'll
import everything in linkedimage/common.py into our namespace (since that's
where most of our code lives.) We'll also hard code which linked image plugin
modules are supported below.
"""
# standard python classes
import inspect
# import linked image common code
# names of linked image plugins
# map of plugin names to their associated LinkedImagePlugin derived class
p_classes = {}
# map of plugin names to their associated LinkedImageChildPlugin derived class
p_classes_child = {}
# initialize temporary variables
# initialize p_classes and p_classes_child
# Find all the classes actually defined in this module.
_classes = [
_i[1]
]
else:
raise RuntimeError("""
Invalid linked image plugin class '{0}' for plugin '{1}'""".format(
# Clean up temporary variables