config.init.py 1.18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
##
## This is where you would customize ASynK's configuration settings. You can
## have any python code in here. Ensure you do not break the basic structure
## of the 'config' object which should be a dictionary as defined in the base
## .json configuration files that are distributed with the sources. You can
## view all the json configurations in the directory asynk_app_root/config/
## directory.
##


def customize_config (config):
    """The input 'config' object is a dictionary containing the ASynK
    Configuration. This method is invoked immediately after the main
    configuration file is read and parsed. You can view the format and
    contents of the configuration dictionary in the file ./config_v5.json
    which is heavily commented and should be largely self-explanatory.

    This method should return the config object after making any
    customizations as required."""

    ## The following line to increase the backup retention duration from the
    ## 'default' 7 days to 10 days

    config['backup_hold_period'] = 10

    ## Uncomment the following line to change the name of the log directory
    ## from the default 'logs' to 'logfiles'

    # config['log_dir'] = 'logfiles'