Repository URL to install this package:
Version:
4.2.64.2 ▾
|
ó [dc @ sm d Z d d l Z d d l Z d d l Z d d l Z d Z d Z d Z d Z d Z d Z d S( s This is the single point of entry to generate the sample configuration file for Nova. It collects all the necessary info from the other modules in this package. It is assumed that: * every other module in this package has a 'list_opts' function which return a dict where * the keys are strings which are the group names * the value of each key is a list of config options for that group * the dmapi.conf package doesn't have further packages with config options * this module is only used in the context of sample file generation iÿÿÿÿNt list_optsc C s/ g t | j D] \ } } | | f ^ q S( s; Take the dict of options and convert to the 2-tuple format.( t listt items( t dctt keyt val( ( s3 /usr/lib/python2.7/dist-packages/dmapi/conf/opts.pyt _tupleize s c C s; t j t } t } t | } t | | t | S( N( t collectionst defaultdictR t _list_module_namest _import_modulest _append_config_optionsR ( t optst module_namest imported_modules( ( s3 /usr/lib/python2.7/dist-packages/dmapi/conf/opts.pyR s c C sv g } t j j t j j t } xK t j d | g D]4 \ } } } | d k s: | ra q: q: | j | q: W| S( Nt pathR ( t osR t dirnamet abspatht __file__t pkgutilt iter_modulest append( R t package_patht _t modnamet ispkg( ( s3 /usr/lib/python2.7/dist-packages/dmapi/conf/opts.pyR &