VirtualMailManager/config.py
branchv0.7.x
changeset 674 995203a101e1
parent 670 f374ef062c94
child 676 2bc11dada296
equal deleted inserted replaced
673:de046a3b29a5 674:995203a101e1
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~
     6     ~~~~~~~~~~~~~~~~~~~~~~~~~
     7 
     7 
     8     VMM's configuration module for simplified configuration access.
     8     VMM's configuration module for simplified configuration access.
     9 """
     9 """
    10 
    10 
       
    11 import collections
       
    12 
    11 from configparser import \
    13 from configparser import \
    12      Error, MissingSectionHeaderError, NoOptionError, NoSectionError, \
    14      Error, MissingSectionHeaderError, NoOptionError, NoSectionError, \
    13      ParsingError, RawConfigParser
    15      ParsingError, RawConfigParser
    14 from io import StringIO
    16 from io import StringIO
    15 
    17 
    17      exec_ok, expand_path, get_unicode, lisdir, size_in_bytes, version_hex
    19      exec_ok, expand_path, get_unicode, lisdir, size_in_bytes, version_hex
    18 from VirtualMailManager.constants import CONF_ERROR
    20 from VirtualMailManager.constants import CONF_ERROR
    19 from VirtualMailManager.errors import ConfigError, VMMError
    21 from VirtualMailManager.errors import ConfigError, VMMError
    20 from VirtualMailManager.maillocation import known_format
    22 from VirtualMailManager.maillocation import known_format
    21 from VirtualMailManager.password import verify_scheme as _verify_scheme
    23 from VirtualMailManager.password import verify_scheme as _verify_scheme
    22 import collections
       
    23 
    24 
    24 DB_MODULES = ('psycopg2', 'pypgsql')
    25 DB_MODULES = ('psycopg2', 'pypgsql')
    25 DB_SSL_MODES = ('allow', 'disabled', 'prefer', 'require', 'verify-ca',
    26 DB_SSL_MODES = ('allow', 'disabled', 'prefer', 'require', 'verify-ca',
    26                 'verify-full')
    27                 'verify-full')
    27 
    28