Previous topic

The nova.openstack.common.gettextutils Module

Next topic

The nova.openstack.common.iniparser Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.openstack.common.importutils Module

Import related utilities and helper functions.

import_class(import_str)

Returns a class from a string including module and class

import_module(import_str)

Import a module.

import_object(import_str, *args, **kwargs)

Import a class and return an instance of it.

import_object_ns(name_space, import_str, *args, **kwargs)

Import a class and return an instance of it, first by trying to find the class in a default namespace, then failing back to a full path if not found in the default namespace.