Repository URL to install this package:
Version:
3.4.43 ▾
|
ó ōEYc @ sÕ d d g Z d d l Z d d l m Z d d l m Z d Z e j d d d d e d d d e j d d d d e d d d e j d d d g d e d d d g Z d Z d Z d d Z d S( t list_optst set_defaultsiÿÿÿÿN( t cfg( t _t oslo_policyt policy_filet defaults policy.jsont helps The file that defines policies.t deprecated_groupt DEFAULTt policy_default_rules: Default rule. Enforced when a requested rule is not found.t policy_dirss policy.ds" Directories where policy configuration files are stored. They can be relative to any directory in the search path defined by the config_dir option, or absolute paths. The file defined by policy_file must exist for these directories to be searched. Missing or empty directories are ignored.c C s t t j t f g S( sä Return a list of oslo.config options available in the library. The returned list includes all oslo.config options which may be registered at runtime by the library. Each element of the list is a tuple. The first element is the name of the group under which the list of elements in the second element will be registered. A group name of None corresponds to the [DEFAULT] group in config files. This function is also discoverable via the 'oslo_messaging' entry point under the 'oslo.config.opts' namespace. The purpose of this is to allow tools like the Oslo sample config file generator to discover the options exposed to users by this library. :returns: a list of (group_name, opts) tuples ( t _option_groupt copyt deepcopyt _options( ( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_policy/opts.pyR 2 s c C s | j t d t d S( s{ Register the policy options. We do this in a few places, so use a function to ensure it is done consistently. t groupN( t register_optsR R ( t conf( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_policy/opts.pyt _registerF s c C s3 t | | d k r/ | j d | d t n d S( sE Set defaults for configuration variables. Overrides default options values. :param conf: Configuration object, managed by the caller. :type conf: oslo.config.cfg.ConfigOpts :param policy_file: The base filename for the file that defines policies. :type policy_file: unicode R R N( R t Nonet set_defaultR ( R R ( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_policy/opts.pyR O s ( t __all__R t oslo_configR t oslo_policy._i18nR R t StrOptt MultiStrOptR R R R R ( ( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_policy/opts.pyt <module> s(