コード例 #1
0
def _db_connect():
    # If you really need to do another migration before all of this goes into
    # quantum, and you need to access the DB, this is what you need:
    oparser = optparse.OptionParser(version="%%prog %s"
                                    % version.version_string())
    create_options(oparser)
    (options, args) = config.parse_options(oparser)
    conf, app = config.Config.load_paste_app('melange', options, args)
    db_api.configure_db(conf, ipv4.plugin(), mac.plugin())
コード例 #2
0
def _db_connect():
    # If you really need to do another migration before all of this goes into
    # quantum, and you need to access the DB, this is what you need:
    oparser = optparse.OptionParser(version="%%prog %s" %
                                    version.version_string())
    create_options(oparser)
    (options, args) = config.parse_options(oparser)
    conf, app = config.Config.load_paste_app('melange', options, args)
    db_api.configure_db(conf, ipv4.plugin(), mac.plugin())
コード例 #3
0
ファイル: conf.py プロジェクト: klmitch/melange
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'melange'
copyright = u'2011-present, OpenStack, LLC.'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
from melange import version as melange_version
# The full version, including alpha/beta/rc tags.
release = melange_version.version_string()
# The short X.Y version.
version = melange_version.canonical_version_string()

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of documents that shouldn't be included in the build.
#unused_docs = []
コード例 #4
0
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'melange'
copyright = u'2011-present, OpenStack, LLC.'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
from melange import version as melange_version
# The full version, including alpha/beta/rc tags.
release = melange_version.version_string()
# The short X.Y version.
version = melange_version.canonical_version_string()

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of documents that shouldn't be included in the build.
#unused_docs = []