rattail.datasync.config

DataSync Configuration

class rattail.datasync.config.DataSyncProfile(*args, **kwargs)[source]

Simple class to hold configuration for a DataSync “profile”. Each profile determines which database(s) will be watched for new changes, and which consumer(s) will then be instructed to process the changes.

Todo

This clearly needs more documentation.

rattail.datasync.config.get_profile_keys(config, include_disabled=False)[source]

Returns a list of profile keys used in the DataSync configuration.

rattail.datasync.config.load_profiles(config, include_disabled=False, ignore_problems=False)[source]

Load all DataSync profiles defined within configuration.

Parameters:

include_disabled – If true, then disabled profiles will be included in the return value; otherwise only currently-enabled profiles are returned.